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

user/3713: Misleading error message from procmap



>Number:         3713
>Category:       user
>Synopsis:       Misleading error message from procmap
>Confidential:   yes
>Severity:       non-critical
>Priority:       low
>Responsible:    bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 14 14:00:01 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Andre Lucas
>Release:        -current
>Organization:
net
>Environment:
	
	System      : OpenBSD-current 
	Architecture: any
>Description:
	When procmap is run as a non-root user, it disallows access to
	other users' processes, but says that "other process's maps are
	restricted." It should say something like "other users' process
	maps are restricted" 
>How-To-Repeat:
	$ procmap 1
	procmap: other process's maps are restricted
>Fix:

Index: src/usr.sbin/procmap/procmap.c
===================================================================
RCS file: /s/openbsd-rep/src/usr.sbin/procmap/procmap.c,v
retrieving revision 1.14
diff -u -r1.14 procmap.c
--- src/usr.sbin/procmap/procmap.c	23 Feb 2004 21:01:22 -0000	1.14
+++ src/usr.sbin/procmap/procmap.c	14 Mar 2004 11:56:43 -0000
@@ -350,7 +350,7 @@
 			return;
 		}
 		if (uid != proc->kp_eproc.e_ucred.cr_uid) {
-			warnx("other process's maps are restricted");
+			warnx("other users' process maps are restricted");
 			return;
 		}
 	}


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