diff --git a/tools/hal-storage-mount.c b/tools/hal-storage-mount.c index 3ecea02..954f8f8 100644 --- a/tools/hal-storage-mount.c +++ b/tools/hal-storage-mount.c @@ -744,7 +744,7 @@ handle_mount (LibHalContext *hal_ctx, /* option matched allowed ending in '=', e.g. * given == "umask=foobar" and allowed == "umask=" */ - if (strcmp (allow, "uid=") == 0) { + if (strcmp (allow, "uid=") == 0 && strcmp(given, "uid=ignore") != 0 && strcmp(given, "uid=forget") != 0) { uid_t uid; char *endp; /* check for uid=, it requires special handling */