aboutsummaryrefslogtreecommitdiff
path: root/sbin/mount_unionfs/mount_unionfs.c
diff options
context:
space:
mode:
authorCraig Rodrigues <rodrigc@FreeBSD.org>2007-01-05 02:54:27 +0000
committerCraig Rodrigues <rodrigc@FreeBSD.org>2007-01-05 02:54:27 +0000
commitf234fd6325677f56064a9da3862b3e951d3f8ed2 (patch)
treed483cf6f61e624dd643cedbdf6f2ef99111f1629 /sbin/mount_unionfs/mount_unionfs.c
parentdde6da66c569118e8207db4a5b953349394fd865 (diff)
downloadsrc-f234fd6325677f56064a9da3862b3e951d3f8ed2.tar.gz
src-f234fd6325677f56064a9da3862b3e951d3f8ed2.zip
Fix parsing of -o uid and -o gid options, so that -o uidxx and -o gidxx
are not accepted. Submitted by: daichi, Masanori OZAWA <ozawa ongs co jp>
Notes
Notes: svn path=/head/; revision=165788
Diffstat (limited to 'sbin/mount_unionfs/mount_unionfs.c')
-rw-r--r--sbin/mount_unionfs/mount_unionfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/mount_unionfs/mount_unionfs.c b/sbin/mount_unionfs/mount_unionfs.c
index 259f07a1269e..d6799f404a64 100644
--- a/sbin/mount_unionfs/mount_unionfs.c
+++ b/sbin/mount_unionfs/mount_unionfs.c
@@ -151,11 +151,11 @@ main(int argc, char *argv[])
if (p != NULL) {
*p = '\0';
val = p + 1;
- if (strncmp(optarg, "gid", 3) == 0) {
+ if (strcmp(optarg, "gid") == 0) {
parse_gid(val, gid_str, sizeof(gid_str));
val = gid_str;
}
- else if (strncmp(optarg, "uid", 3) == 0) {
+ else if (strcmp(optarg, "uid") == 0) {
parse_uid(val, uid_str, sizeof(uid_str));
val = uid_str;
}