#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
#include <time.h>
#include "et/com_err.h"
if (delay > 0) {
if (setjmp(alarm_env)) {
signal(SIGALRM, SIG_IGN);
- printf(_("<proceeding>\n"));
+ printf("%s", _("<proceeding>\n"));
return;
}
signal(SIGALRM, alarm_signal);
tm = sb->s_wtime;
printf(_("\tlast modified on %s"), ctime(&tm));
}
- ext2fs_close(fs);
+ ext2fs_close_free(&fs);
}
/*
char *fs_label = NULL;
fd = ext2fs_open_file(device, fl, 0666);
+ if ((fd < 0) && (errno == ENOENT) && (flags & NO_SIZE)) {
+ fprintf(stderr, _("The file %s does not exist and no "
+ "size was specified.\n"), device);
+ exit(1);
+ }
if ((fd < 0) && (errno == ENOENT) && (flags & CREATE_FILE)) {
fl |= O_CREAT;
fd = ext2fs_open_file(device, fl, 0666);