diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-11-20 03:24:18 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-11-20 03:24:18 +0000 |
commit | f1e43ec846a3bdd1526ea62d46173161b2f132a6 (patch) | |
tree | 95d62c4d77d2adfc5ba206359e1d799928aa5bed /usr.bin/mg/file.c | |
parent | b67b06b185a138bc4e48ed340ee4cf1612573e6d (diff) |
toast NO_DIRED #ifdef; ok kjell
Diffstat (limited to 'usr.bin/mg/file.c')
-rw-r--r-- | usr.bin/mg/file.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.bin/mg/file.c b/usr.bin/mg/file.c index 589fb0a60f8..220e92bffac 100644 --- a/usr.bin/mg/file.c +++ b/usr.bin/mg/file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.45 2005/11/18 20:56:52 deraadt Exp $ */ +/* $OpenBSD: file.c,v 1.46 2005/11/20 03:24:17 deraadt Exp $ */ /* This file is in the public domain. */ @@ -249,10 +249,8 @@ readin(char *fname) */ if (access(fname, W_OK) && errno != ENOENT) ro = TRUE; -#ifndef NO_DIRED if (fisdir(fname) == TRUE) ro = TRUE; -#endif if (ro == TRUE) curbp->b_flag |= BFREADONLY; else @@ -321,7 +319,6 @@ insertfile(char *fname, char *newname, int replacebuf) else ewprintf("(File not found)"); goto out; -#ifndef NO_DIRED } else if (s == FIODIR) { /* file was a directory */ if (replacebuf == FALSE) { @@ -335,7 +332,6 @@ insertfile(char *fname, char *newname, int replacebuf) undo_enable(x); curbp = bp; return (showbuffer(bp, curwp, WFHARD | WFMODE)); -#endif /* !NO_DIRED */ } opos = curwp->w_doto; |