Subject: bin/23969: remove code left over from printescaped() function backout in ln.c and mkdir.c
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <jeffi@rcn.com>
List: netbsd-bugs
Date: 01/04/2004 04:21:43
>Number:         23969
>Category:       bin
>Synopsis:       remove code left over from printescaped() function backout in ln.c and mkdir.c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 04 04:22:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Jeff Ito
>Release:        1.6ZG
>Organization:
>Environment:
NetBSD 1.6ZG Fri Dec  5 15:13:48 EST 2003
>Description:
remove code left over from printescaped() function backout.
minor style/indentation fix for ln.c
>How-To-Repeat:
N/A
>Fix:
Index: ln.c
===================================================================
RCS file: /cvs/nbsd/src/bin/ln/ln.c,v
retrieving revision 1.26
diff -u -r1.26 ln.c
--- ln.c        14 Sep 2003 19:20:21 -0000      1.26
+++ ln.c        4 Jan 2004 04:13:56 -0000
@@ -52,13 +52,11 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
-#include <vis.h>
 
 int    fflag;                          /* Unlink existing files. */
 int    hflag;                          /* Check new name for symlink first. */
 int    sflag;                          /* Symbolic, not hard, link. */
 int    vflag;                          /* Verbose output */
-int    stdout_ok;                      /* stdout connected to a terminal */
 
                                        /* System link call. */
 int (*linkf)(const char *, const char *);
@@ -89,8 +87,8 @@
                        sflag = 1;
                        break;
                case 'v':               
-               vflag = 1;      
-               break;   
+                       vflag = 1;      
+                       break;   
                case '?':
                default:
                        usage();
@@ -119,8 +117,6 @@
                exit(linkit(argv[0], argv[1], 0));
                /* NOTREACHED */
        }
-
-       stdout_ok = isatty(STDOUT_FILENO);
 
                                        /* ln target1 target2 directory */
        sourcedir = argv[argc - 1];
Index: mkdir.c
===================================================================
RCS file: /cvs/nbsd/src/bin/mkdir/mkdir.c,v
retrieving revision 1.34
diff -u -r1.34 mkdir.c
--- mkdir.c     14 Sep 2003 19:20:21 -0000      1.34
+++ mkdir.c     4 Jan 2004 04:18:23 -0000
@@ -54,9 +54,6 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
-#include <vis.h>
-
-int    stdout_ok;                      /* stdout connected to a terminal */
 
 int    mkpath(char *, mode_t, mode_t);
 void   usage(void);
@@ -108,8 +105,6 @@
                usage();
                /* NOTREACHED */
        }
-
-       stdout_ok = isatty(STDOUT_FILENO);
 
        for (exitval = EXIT_SUCCESS; *argv != NULL; ++argv) {
 #ifdef notdef

>Release-Note:
>Audit-Trail:
>Unformatted: