aboutsummaryrefslogtreecommitdiff
path: root/bin/date/date.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/date/date.c')
-rw-r--r--bin/date/date.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/bin/date/date.c b/bin/date/date.c
index 9ae6502e2a7e..2c09848a151e 100644
--- a/bin/date/date.c
+++ b/bin/date/date.c
@@ -44,7 +44,6 @@ __FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/time.h>
-#include <sys/stat.h>
#include <ctype.h>
#include <err.h>
@@ -86,7 +85,6 @@ main(int argc, char *argv[])
struct vary *v;
const struct vary *badv;
struct tm lt;
- struct stat sb;
v = NULL;
fmt = NULL;
@@ -118,12 +116,8 @@ main(int argc, char *argv[])
case 'r': /* user specified seconds */
rflag = 1;
tval = strtoq(optarg, &tmp, 0);
- if (*tmp != 0) {
- if (stat(optarg, &sb) == 0)
- tval = sb.st_mtim.tv_sec;
- else
- usage();
- }
+ if (*tmp != 0)
+ usage();
break;
case 't': /* minutes west of UTC */
/* error check; don't allow "PST" */