diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-07-21 16:37:31 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-07-21 16:37:31 +0000 |
commit | 18c61c4ddbc64ce372238097d5043159ec4f7c8a (patch) | |
tree | 9684b9e6e907dca3e6746743afc25f1388b07f6b /libdiskfs/file-set-trans.c | |
parent | d97f8d12291f6066a8f7878ce2836b2787aa82bd (diff) |
(diskfs_S_file_set_translator): Only validate PASSIVELEN if PASSIVE is
set.
Diffstat (limited to 'libdiskfs/file-set-trans.c')
-rw-r--r-- | libdiskfs/file-set-trans.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdiskfs/file-set-trans.c b/libdiskfs/file-set-trans.c index c699dc52..12e3e3b1 100644 --- a/libdiskfs/file-set-trans.c +++ b/libdiskfs/file-set-trans.c @@ -40,7 +40,7 @@ diskfs_S_file_set_translator (struct protid *cred, if (!(passive_flags & FS_TRANS_SET) && !(active_flags & FS_TRANS_SET)) return 0; - if (passive[passivelen - 1]) + if (passive && passive[passivelen - 1]) return EINVAL; np = cred->po->np; |