summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--old/fileutils/ChangeLog6
-rw-r--r--src/ls.c2
-rw-r--r--src/mv.c2
-rw-r--r--src/rm.c2
4 files changed, 9 insertions, 3 deletions
diff --git a/old/fileutils/ChangeLog b/old/fileutils/ChangeLog
index 8ae234243..ab9157e60 100644
--- a/old/fileutils/ChangeLog
+++ b/old/fileutils/ChangeLog
@@ -1,3 +1,9 @@
+Thu Nov 18 00:03:24 1993 Jim Meyering (meyering@comco.com)
+
+ * configure.in [STAT_STATFS2_FSIZE]: Fix test (that had obsolete
+ and now-broken use of AC_HEADER_EGREP) so that this flag is set
+ for NetBSD 0.9.
+
Mon Oct 25 20:27:00 1993 Jim Meyering (meyering@comco.com)
* cp-aux.c, df.c, install.c, ln.c, ls.c, mkdir.c, mkfifo.c,
diff --git a/src/ls.c b/src/ls.c
index adfe143fb..e0aece50e 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -1480,7 +1480,7 @@ print_long_format (f)
printf ("%3u, %3u ", (unsigned) major (f->stat.st_rdev),
(unsigned) minor (f->stat.st_rdev));
else
- printf ("%8lu ", f->stat.st_size);
+ printf ("%8lu ", (unsigned long) f->stat.st_size);
printf ("%s ", full_time ? timebuf : timebuf + 4);
diff --git a/src/mv.c b/src/mv.c
index a79da4b86..bec6939e4 100644
--- a/src/mv.c
+++ b/src/mv.c
@@ -189,7 +189,7 @@ main (argc, argv)
if (make_backups)
backup_type = get_version (version);
- stdin_tty = isatty (0);
+ stdin_tty = isatty (STDIN_FILENO);
if (argc > optind + 2 && !isdir (argv[argc - 1]))
error (1, 0, "when moving multiple files, last argument must be a directory");
diff --git a/src/rm.c b/src/rm.c
index bae9e95b3..722994735 100644
--- a/src/rm.c
+++ b/src/rm.c
@@ -166,7 +166,7 @@ main (argc, argv)
usage (1);
}
- stdin_tty = isatty (0);
+ stdin_tty = isatty (STDIN_FILENO);
for (; optind < argc; optind++)
{