diff options
Diffstat (limited to 'selinux')
-rw-r--r-- | selinux/chcon.c | 2 | ||||
-rw-r--r-- | selinux/setfiles.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/selinux/chcon.c b/selinux/chcon.c index f0590b5..3609880 100644 --- a/selinux/chcon.c +++ b/selinux/chcon.c @@ -136,7 +136,7 @@ int chcon_main(int argc, char **argv) ":\xff--urtl:u--\xff:r--\xff:t--\xff:l--\xff" #endif ":f--v:v--f"; /* 'verbose' and 'quiet' are exclusive */ - getopt32(argv, "Rchf:u:r:t:l:v", + getopt32(argv, "Rchfu:r:t:l:v", &user, &role, &type, &range, &reference_file); argv += optind; diff --git a/selinux/setfiles.c b/selinux/setfiles.c index 174d4ce..c3775cd 100644 --- a/selinux/setfiles.c +++ b/selinux/setfiles.c @@ -189,7 +189,7 @@ static int match(const char *name, struct stat *sb, char **con) file_sep = strrchr(tmp_path, '/'); if (file_sep == tmp_path) { file_sep++; - p[0] = '\0'; + path[0] = '\0'; p = path; } else if (file_sep) { *file_sep++ = '\0'; |