#ifndef lint
static const char rcsid[] =
- "$Id: optr.c,v 1.37 2003/04/10 07:59:05 stelian Exp $";
+ "$Id: optr.c,v 1.39 2004/07/05 15:12:45 stelian Exp $";
#endif /* not lint */
#include <config.h>
/* Translade UUID=, LABEL= ... */
disk = get_device_name(fs->mnt_fsname);
if (disk == NULL)
- quit("Cannot find a disk having %s\n", fs->mnt_fsname);
+ disk = strdup(fs->mnt_fsname);
/* Discard non block devices */
if (stat(disk, &buf) != 0 || !S_ISBLK(buf.st_mode)) {
date = (char *)ctime(&ddate);
d = strchr(date, '\n');
if (d) *d = '\0';
- printf("Level %c, Date %s\n", level, date);
+ printf("Level %d, Date %s\n", level, date);
} else
printf("never\n");
}