summaryrefslogtreecommitdiff
path: root/lib/mdate-sh
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>1997-04-02 07:23:13 +0000
committerTom Tromey <tromey@redhat.com>1997-04-02 07:23:13 +0000
commitb967da6e3946105b51e1d5140f8f764c122f1dfe (patch)
tree50da50730bbf3f6b39902d79102ff12c4069d63f /lib/mdate-sh
parent68a5f0636eef42228ad0cb659803a02bbce4eac9 (diff)
downloadautomake-b967da6e3946105b51e1d5140f8f764c122f1dfe.tar.gz
mdate-sh fix
Diffstat (limited to 'lib/mdate-sh')
-rwxr-xr-xlib/mdate-sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/mdate-sh b/lib/mdate-sh
index 3eeeca456..74e00f698 100755
--- a/lib/mdate-sh
+++ b/lib/mdate-sh
@@ -25,11 +25,11 @@ export LC_ALL
LC_TIME=C
export LC_TIME
-# Get the extended ls output of the file.
+# Get the extended ls output of the file or directory.
if ls -L /dev/null 1>/dev/null 2>&1; then
- set - `ls -L -l $1`
+ set - `ls -L -l -d $1`
else
- set - `ls -l $1`
+ set - `ls -l -d $1`
fi
# The month is at least the fourth argument.
# (3 shifts here, the next inside the loop)