repo.or.cz
/
valgrind.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add missing zstd.h to coregrind Makefile.am noinst_HEADERS
[valgrind.git]
/
memcheck
/
tests
/
freebsd
/
get_set_login.c
blob
54027a74559f481ae545bec583396a532a209bed
1
#include <unistd.h>
2
#include <string.h>
3
#include <stdlib.h>
4
5
int
main
()
6
{
7
// can't go wrong?
8
(
void
)
getlogin
();
9
10
// setlogin needs root privs
11
char
*
bogus
=
strdup
(
"nobody"
);
12
setlogin
(
bogus
);
13
free
(
bogus
);
14
setlogin
(
bogus
);
15
}