git://git.onelab.eu
/
util-vserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
There's no need to call getpwuid/getpwnam_r 5 times. Do it once before chroot, once...
[util-vserver.git]
/
lib
/
syscall_getvhiname-v13.hc
diff --git
a/lib/syscall_getvhiname-v13.hc
b/lib/syscall_getvhiname-v13.hc
index
e244dcd
..
22d3947
100644
(file)
--- a/
lib/syscall_getvhiname-v13.hc
+++ b/
lib/syscall_getvhiname-v13.hc
@@
-1,4
+1,4
@@
-// $Id: syscall_getvhiname-v13.hc
,v 1.3 2005/07/03 17:49:56 ensc Exp
$ --*- c -*--
+// $Id: syscall_getvhiname-v13.hc
2242 2006-01-04 12:29:15Z ensc
$ --*- c -*--
// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
//
// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
//
@@
-44,5
+44,6
@@
vc_get_vhi_name_v13(xid_t xid, vc_uts_type type, char *val, size_t len)
l = l>len ? len : l;
strncpy(val, cmd.name, l);
l = l>len ? len : l;
strncpy(val, cmd.name, l);
+ /* DO NOT terminate 'val' with '\0' explicitly */
return 0;
}
return 0;
}