diff options
author | tjr <tjr@FreeBSD.org> | 2002-05-19 06:03:05 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2002-05-19 06:03:05 +0000 |
commit | ada2f900a38d47a260d94dd3f996a87e81130173 (patch) | |
tree | 39da0880e61a1db8ed946867d12f3bb04e4a192f /bin/sh/error.c | |
parent | 619a9e0c61c8a42e5e7f593ec5dcebc0660b783e (diff) | |
download | FreeBSD-src-ada2f900a38d47a260d94dd3f996a87e81130173.zip FreeBSD-src-ada2f900a38d47a260d94dd3f996a87e81130173.tar.gz |
Implement the -C (-o noclobber) option, which prevents existing regular
files from being overwritten by shell redirection.
Diffstat (limited to 'bin/sh/error.c')
-rw-r--r-- | bin/sh/error.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/sh/error.c b/bin/sh/error.c index 0cf20b3..96e6534 100644 --- a/bin/sh/error.c +++ b/bin/sh/error.c @@ -247,6 +247,7 @@ STATIC const struct errname errormsg[] = { #ifdef ELIBACC { ELIBACC, E_EXEC, "shared library missing" }, #endif + { EEXIST, E_CREAT, "file exists" }, { 0, 0, NULL }, }; |