diff options
author | Adrian Chadd <adrian@FreeBSD.org> | 2014-01-11 15:01:30 +0000 |
---|---|---|
committer | Adrian Chadd <adrian@FreeBSD.org> | 2014-01-11 15:01:30 +0000 |
commit | 4c766481d0ee902c5fcdb7f5dc3c70819387f890 (patch) | |
tree | 50659571a7a204cd104eb767d614542c04b7531a | |
parent | f1575af8e404f8105842ab1d32da5eb70988e1f8 (diff) | |
download | src-test2-4c766481d0ee902c5fcdb7f5dc3c70819387f890.tar.gz src-test2-4c766481d0ee902c5fcdb7f5dc3c70819387f890.zip |
Notes
-rw-r--r-- | bin/cat/cat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/cat/cat.c b/bin/cat/cat.c index 0daac7caec70..f724cb0b8b9a 100644 --- a/bin/cat/cat.c +++ b/bin/cat/cat.c @@ -316,6 +316,7 @@ udom_open(const char *path, int flags) sou.sun_family = AF_UNIX; if ((len = strlcpy(sou.sun_path, path, sizeof(sou.sun_path))) >= sizeof(sou.sun_path)) { + close(fd); errno = ENAMETOOLONG; return (-1); } |