]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
libquota: remove get_qf_name()
authorTheodore Ts'o <tytso@mit.edu>
Tue, 4 Oct 2011 15:38:47 +0000 (11:38 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 4 Oct 2011 22:51:43 +0000 (18:51 -0400)
commit36e4e21f511423450285568ceb26b3ddb233e286
tree20c57bd9263860df8adefdef6938ecab0b6a6592
parentedbfd75d8fb4a13eccc2cadb12a453c3425d17d1
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>
e2fsck/quota.c
lib/quota/mkquota.c
lib/quota/mkquota.h
lib/quota/quotaio.c
misc/tune2fs.c