Subject: bin/20276: pax(1) parenthesis missing in file_sub.c
To: None <gnats-bugs@gnats.netbsd.org>
From: None <hira@po6.nsk.ne.jp>
List: netbsd-bugs
Date: 02/10/2003 16:23:12
>Number:         20276
>Category:       bin
>Synopsis:       pax(1) parenthesis missing in file_sub.c
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 09 23:24:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     HIRATSUKA Kouichirou
>Release:        NetBSD 1.6N
>Organization:
	HIRATSUKA Kouichirou
>Environment:
System: NetBSD firefly.localdomain 1.6N NetBSD 1.6N (FIREFLY) #14: Mon Feb 10 14:28:06 JST 2003 root@firefly.localdomain:/usr/src/sys/arch/i386/compile/FIREFLY i386
Architecture: i386
Machine: i386
>Description:
	pax(1) parenthesis missing in file_sub.c

>How-To-Repeat:

>Fix:
add parenthesis to set_pmode()

Index: file_subs.c
===================================================================
RCS file: /cvsroot/src/bin/pax/file_subs.c,v
retrieving revision 1.31
diff -u -r1.31 file_subs.c
--- file_subs.c	9 Feb 2003 18:27:10 -0000	1.31
+++ file_subs.c	10 Feb 2003 06:41:28 -0000
@@ -769,8 +769,10 @@
 #else
 	if (chmod(fnm, mode))
 #endif
+	{
 		(void)fflush(listf);
 		syswarn(1, errno, "Cannot set permissions on %s", fnm);
+	}
 	return;
 }
 
  

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