diff options
author | Jeff Layton <jlayton@samba.org> | 2012-11-07 10:19:15 -0500 |
---|---|---|
committer | Jeff Layton <jlayton@samba.org> | 2012-11-07 10:19:15 -0500 |
commit | 7b3796695ec4b2afe2feb05678be8f8a6b64044c (patch) | |
tree | f28193d566a81b47df9b09efbb341840ba3d7f40 /mount.cifs.c | |
parent | b578467bf04f0290ab3bcaa82ef007d9f39f186b (diff) | |
download | cifs-utils-7b3796695ec4b2afe2feb05678be8f8a6b64044c.tar.gz cifs-utils-7b3796695ec4b2afe2feb05678be8f8a6b64044c.tar.bz2 cifs-utils-7b3796695ec4b2afe2feb05678be8f8a6b64044c.zip |
setcifsacl: fix up getopt() usage
'?' has a special meaning in getopt(). It means that the option
character was not recognized. You can override that behavior by making
':' the first character of the optstring, but that wasn't done here. I'm
not sure what the effect of having '?' in the actual optstring is in
this case, but it's probably best not to put it in there.
Remove '?' from the optstring and replace it 'h'. Also add '-h' as a
valid option to the manpage.
'-v' doesn't require an argument, so fix the optstring to reflect that.
Finally declare a new variable to hold optarg. Currently we only call
getopt() once, which is a little odd. Eventually we may want to make it
call it more than once, in which case we'll need some way to store the
optarg on each pass.
Signed-off-by: Jeff Layton <jlayton@samba.org>
Diffstat (limited to 'mount.cifs.c')
0 files changed, 0 insertions, 0 deletions