diff options
author | Theodore Ts'o <tytso@mit.edu> | 2011-10-04 11:38:47 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-10-04 18:51:43 -0400 |
commit | 36e4e21f511423450285568ceb26b3ddb233e286 (patch) | |
tree | 20c57bd9263860df8adefdef6938ecab0b6a6592 /misc | |
parent | edbfd75d8fb4a13eccc2cadb12a453c3425d17d1 (diff) | |
download | e2fsprogs-36e4e21f511423450285568ceb26b3ddb233e286.tar.gz |
libquota: remove get_qf_name()
The get_qf_name() function used PATH_MAX, which is non-portable.
Worse, it blindly assumed that PATH_MAX was the size of the buffer
passed to it --- which in the one and only place where it was used in
libquota, was a buffer declared to a fixed size 256 bytes.
Fix this by simply getting rid of the function altogether.
Cc: Aditya Kali <adityakali@google.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'misc')
-rw-r--r-- | misc/tune2fs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/tune2fs.c b/misc/tune2fs.c index e2fdb4a5..88e814b4 100644 --- a/misc/tune2fs.c +++ b/misc/tune2fs.c @@ -710,7 +710,7 @@ void handle_quota_options(ext2_filsys fs) init_quota_context(&qctx, fs, -1); if (usrquota == QOPT_ENABLE && !fs->super->s_usr_quota_inum) { - if ((qf_ino = quota_file_exists(fs, USRQUOTA, QFMT_VFS_V1)) > 0) + if ((qf_ino = quota_file_exists(fs, USRQUOTA)) > 0) set_sb_quota_inum(fs, qf_ino, USRQUOTA); else write_quota_inode(qctx, USRQUOTA); @@ -719,7 +719,7 @@ void handle_quota_options(ext2_filsys fs) } if (grpquota == QOPT_ENABLE && !fs->super->s_grp_quota_inum) { - if ((qf_ino = quota_file_exists(fs, GRPQUOTA, QFMT_VFS_V1)) > 0) + if ((qf_ino = quota_file_exists(fs, GRPQUOTA)) > 0) set_sb_quota_inum(fs, qf_ino, GRPQUOTA); else write_quota_inode(qctx, GRPQUOTA); |