summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorJeff Layton <jlayton@samba.org>2012-02-23 10:42:09 -0500
committerJeff Layton <jlayton@samba.org>2012-02-23 10:42:09 -0500
commitf6384b4fe1ffdeebee3e9d73dd533a4fbf83b6d8 (patch)
treeaa6fb65730c0099f6c3ed319fe852ad16f4f1f22 /NEWS
parent1c2f85a6aecffa7260709e5a44d77335bcade13f (diff)
downloadcifs-utils-f6384b4fe1ffdeebee3e9d73dd533a4fbf83b6d8.tar.gz
cifs-utils-f6384b4fe1ffdeebee3e9d73dd533a4fbf83b6d8.tar.bz2
cifs-utils-f6384b4fe1ffdeebee3e9d73dd533a4fbf83b6d8.zip
mount.cifs: fix tests for strtoul success
The current test just looks to see if errno was 0 after the conversion but we need to do a bit more. According to the strtoul manpage: If there were no digits at all, strtoul() stores the original value of nptr in *endptr (and returns 0). So, if you pass in a string of letters, strtoul will return 0, but won't actually have converted anything. Luckily, in most cases, /bin/mount papers over this bug by doing uid/gid conversions itself before calling mount.cifs. Fix this by also checking to ensure that strtoul() converted the entire string in addition to checking that it didn't set errno. While we're at it, fix the test in backupuid/backupgid options as well which don't currently check whether errno got set. Reported-by: Kyle Squizzato <ksquizza@redhat.com> Signed-off-by: Jeff Layton <jlayton@samba.org>
Diffstat (limited to 'NEWS')
0 files changed, 0 insertions, 0 deletions