summaryrefslogtreecommitdiffstats
path: root/bin/sh/error.c
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2002-05-19 06:03:05 +0000
committertjr <tjr@FreeBSD.org>2002-05-19 06:03:05 +0000
commitada2f900a38d47a260d94dd3f996a87e81130173 (patch)
tree39da0880e61a1db8ed946867d12f3bb04e4a192f /bin/sh/error.c
parent619a9e0c61c8a42e5e7f593ec5dcebc0660b783e (diff)
downloadFreeBSD-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.c1
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 },
};
OpenPOWER on IntegriCloud