regen and use revoke() only if found
XXX should use autoheader for config.h.in
This commit is contained in:
parent
2ff774f6f5
commit
44abfaee70
6
chvt.c
6
chvt.c
@ -1,4 +1,4 @@
|
|||||||
/** $MirBSD: chvt.c,v 1.4 2004/12/05 16:10:58 tg Exp $ */
|
/** $MirBSD: chvt.c,v 1.5 2004/12/09 23:25:17 tg Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2004
|
* Copyright (c) 2004
|
||||||
@ -24,7 +24,7 @@
|
|||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include "ksh_stat.h"
|
#include "ksh_stat.h"
|
||||||
|
|
||||||
__RCSID("$MirBSD: chvt.c,v 1.4 2004/12/05 16:10:58 tg Exp $");
|
__RCSID("$MirBSD: chvt.c,v 1.5 2004/12/09 23:25:17 tg Exp $");
|
||||||
|
|
||||||
char *
|
char *
|
||||||
chvt(char *f)
|
chvt(char *f)
|
||||||
@ -36,7 +36,7 @@ chvt(char *f)
|
|||||||
return "chown";
|
return "chown";
|
||||||
if (chmod(f, 0600))
|
if (chmod(f, 0600))
|
||||||
return "chmod";
|
return "chmod";
|
||||||
#ifndef linux
|
#if defined(HAVE_REVOKE) && !defined(linux)
|
||||||
if (revoke(f))
|
if (revoke(f))
|
||||||
return "revoke";
|
return "revoke";
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user