* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*/
-#include "config.h"
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+#define _LINUX_QUOTA_VERSION 1
#include <sys/types.h>
#include <sys/quota.h>
#define min(x,y) ((x) < (y)) ? (x) : (y)
#define CORRECT_FSTYPE(type) \
-(!strcmp(type,MNTTYPE_EXT2))
+((!strcmp(type,MNTTYPE_EXT2)) || (!strcmp(type,MNTTYPE_EXT3)))
char *qfextension[] = INITQFNAMES;
if (((type == USRQUOTA) && (option = hasmntopt(mnt, MNTOPT_USRQUOTA)) != (char *)0) ||
((type == GRPQUOTA) && (option = hasmntopt(mnt, MNTOPT_GRPQUOTA)) != (char *)0)) {
if ((pathname = strchr(option, '=')) == (char *)0) {
- *qfnamep=xmalloc(strlen(mnt->mnt_dir)+strlen(qfname)+strlen(qfextension[type])+2);
+ *qfnamep=xmalloc(strlen(mnt->mnt_dir)+strlen(qfname)+strlen(qfextension[type])+3);
(void) sprintf(*qfnamep, "%s%s%s.%s", mnt->mnt_dir,
(mnt->mnt_dir[strlen(mnt->mnt_dir) - 1] == '/') ? "" : "/",
qfname, qfextension[type]);