Author: mturk Date: Wed Mar 6 10:45:30 2013 New Revision: 1453280 URL: http://svn.apache.org/r1453280 Log: Fix DAEMON-280
Modified: commons/proper/daemon/branches/1.0.x/RELEASE-NOTES.txt commons/proper/daemon/branches/1.0.x/src/native/unix/native/arguments.c Modified: commons/proper/daemon/branches/1.0.x/RELEASE-NOTES.txt URL: http://svn.apache.org/viewvc/commons/proper/daemon/branches/1.0.x/RELEASE-NOTES.txt?rev=1453280&r1=1453279&r2=1453280&view=diff ============================================================================== --- commons/proper/daemon/branches/1.0.x/RELEASE-NOTES.txt (original) +++ commons/proper/daemon/branches/1.0.x/RELEASE-NOTES.txt Wed Mar 6 10:45:30 2013 @@ -84,7 +84,7 @@ NEW FEATURES: BUG FIXES: -1.0.14: DAEMON-278, DAEMON-281, DAEMON-283 +1.0.14: DAEMON-278, DAEMON-280, DAEMON-281, DAEMON-283 1.0.13: DAEMON-275, DAEMON-276 Modified: commons/proper/daemon/branches/1.0.x/src/native/unix/native/arguments.c URL: http://svn.apache.org/viewvc/commons/proper/daemon/branches/1.0.x/src/native/unix/native/arguments.c?rev=1453280&r1=1453279&r2=1453280&view=diff ============================================================================== --- commons/proper/daemon/branches/1.0.x/src/native/unix/native/arguments.c (original) +++ commons/proper/daemon/branches/1.0.x/src/native/unix/native/arguments.c Wed Mar 6 10:45:30 2013 @@ -281,7 +281,8 @@ static arg_data *parse(int argc, char *a log_error("Invalid umask specified"); return NULL; } - args->umask = atoi(temp); + /* Parameter must be in octal */ + args->umask = (int)strtol(temp, NULL, 8); if (args->umask < 02) { log_error("Invalid umask specified (min=02)"); return NULL;