summaryrefslogtreecommitdiff
path: root/convertquota.c
diff options
context:
space:
mode:
authorjkar8572 <jkar8572>2001-05-11 11:00:40 +0000
committerjkar8572 <jkar8572>2001-05-11 11:00:40 +0000
commitefb62d5ef3fe7703e790173d53cf649c156bcb4e (patch)
tree473f308f0880a1afc4995bcdd70dd70a06c8adcd /convertquota.c
parent3dbd1e5a75e551d93ced9b3f698c29be91261415 (diff)
Fixed bug in quotacheck for new format.
Fixed bug in version() in quot (Nathan). Added -t (truncate names) option to repquota.
Diffstat (limited to 'convertquota.c')
-rw-r--r--convertquota.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/convertquota.c b/convertquota.c
index d9a95bb..9d4bb96 100644
--- a/convertquota.c
+++ b/convertquota.c
@@ -108,8 +108,11 @@ void convert_file(int type)
while ((mnt = getmntent(mntf))) {
if (!(dev = get_device_name(mnt->mnt_fsname)))
continue;
- if (devcmp(dev, mntpoint) || dircmp(mnt->mnt_dir, mntpoint))
+ if (devcmp(dev, mntpoint) || dircmp(mnt->mnt_dir, mntpoint)) {
+ free((void *)dev);
break;
+ }
+ free((void *)dev);
}
if (!mnt)
die(1, _("Can't find given mountpoint %s\n"), mntpoint);