drizzletest chmod mode string conversion invalid (decimal instead of octal)
Bug #408690 reported by
Ross M.
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Drizzle |
Fix Released
|
High
|
Ross M. |
Bug Description
varbinary fails when calling chmod.
this is causing a test failure on FreeBSD, but in reality will be invalid/affect all operating systems.
the code converting a string mode "0777" to an int mode is doing a decimal conversion, so 0777 becomes 0x309 which is isn't anywhere near a desired mode and is in fact invalid for a plain file (at least on FreeBSD returning EFTYPE, trying to set the sticky-bit with a non-root user)
fix is simple, just needs a std::oct in the conversion. branch will be associated with this bug as soon as i get it up and in...
Related branches
Changed in drizzle: | |
assignee: | nobody → Ross M. (rwmcfa1) |
importance: | Undecided → High |
milestone: | none → aloha |
status: | New → Confirmed |
Changed in drizzle: | |
status: | Confirmed → Fix Committed |
Changed in drizzle: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.