Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl2/xcvs/dist/src check chdir return



details:   https://anonhg.NetBSD.org/src/rev/b23b484a23a5
branches:  trunk
changeset: 777894:b23b484a23a5
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Mar 08 20:46:08 2012 +0000

description:
check chdir return

diffstat:

 external/gpl2/xcvs/dist/src/ls.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 424537062ec9 -r b23b484a23a5 external/gpl2/xcvs/dist/src/ls.c
--- a/external/gpl2/xcvs/dist/src/ls.c  Thu Mar 08 20:45:52 2012 +0000
+++ b/external/gpl2/xcvs/dist/src/ls.c  Thu Mar 08 20:46:08 2012 +0000
@@ -546,7 +546,8 @@
                    set_tag = false;
                }
 
-               (void)CVS_CHDIR ("..");
+               if (CVS_CHDIR ("..") == -1)
+                   error (0, errno, "Failed to chdir ..");
                if (unlink_file_dir (dir))
                    error (0, errno, "Failed to remove directory `%s'",
                           created_dir);



Home | Main Index | Thread Index | Old Index