aboutsummaryrefslogtreecommitdiff
path: root/lib/libutil
diff options
context:
space:
mode:
authorcvs2svn <cvs2svn@FreeBSD.org>1999-05-24 16:47:10 +0000
committercvs2svn <cvs2svn@FreeBSD.org>1999-05-24 16:47:10 +0000
commitc37538200ebdef38051ba82b76e6b2dab3bd2fdc (patch)
tree3c937e1c39e039ed95d3b8ead3defc46cf60cc04 /lib/libutil
parenta21d905bae94bc358756957b1c26e2ec3f487e82 (diff)
Notes
Diffstat (limited to 'lib/libutil')
-rw-r--r--lib/libutil/login_class.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libutil/login_class.c b/lib/libutil/login_class.c
index 15b16d384d83..3887541a409e 100644
--- a/lib/libutil/login_class.c
+++ b/lib/libutil/login_class.c
@@ -21,7 +21,7 @@
*
* High-level routines relating to use of the user capabilities database
*
- * $Id$
+ * $Id: login_class.c,v 1.9 1998/07/28 01:30:16 ache Exp $
*/
#include <stdio.h>
@@ -163,7 +163,7 @@ substvar(char * var, const struct passwd * pwd, int hlen, int pch, int nlen)
while (*(p += strcspn(p, "~$")) != '\0') {
int l = strlen(p);
- if (p > np && *(p-1) == '\\') /* Escaped: */
+ if (p > var && *(p-1) == '\\') /* Escaped: */
memmove(p - 1, p, l + 1); /* Slide-out the backslash */
else if (*p == '~') {
int v = pch && *(p+1) != '/'; /* Avoid double // */