diff options
author | P. J. McDermott <pjm@nac.net> | 2013-10-26 18:09:21 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-10-26 18:09:21 (EDT) |
commit | ba3e7518944a033ad0112085b2d7803006241209 (patch) | |
tree | 479b61b50bc8c5b05b7d312786735f6693b26b1d | |
parent | ddc4138f41e892d7e665a04217d6c0c4108c132e (diff) |
fopen(): Exit on failure.
-rw-r--r-- | lib/fd.sh | 3 | ||||
-rw-r--r-- | locale/en_US.sh | 1 |
2 files changed, 2 insertions, 2 deletions
@@ -74,8 +74,7 @@ fopen() FD="${fd}" return 0 else - FD='' - return 1 + error 2 "$(get_msg 'cant_fopen')" fi } diff --git a/locale/en_US.sh b/locale/en_US.sh index 02f82a9..e3cfa83 100644 --- a/locale/en_US.sh +++ b/locale/en_US.sh @@ -23,6 +23,7 @@ msg_prokit_opt_V_summary='print version information' # lib/fd.sh msg_prokit_emfile='Too many open files' +msg_prokit_cant_fopen='Cannot open file' msg_prokit_ebadf='Bad file descriptor' # lib/cmd.sh |