summaryrefslogtreecommitdiff
path: root/src/tc-switchuser.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2023-01-29 16:17:52 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2023-01-29 16:17:52 +0100
commitcd47bd564d7fc6177ba2e231d76bf352978409b8 (patch)
tree7465150c86969e66a90e4b960bb3537485205842 /src/tc-switchuser.c
parent6c88f3bab0b743487b367712fa1ec27d1f87389e (diff)
parentbfef0924f58eab930bdd826ac0132786abc32220 (diff)
Update upstream source from tag 'upstream/4.10'
Update to upstream version '4.10' with Debian dir 3c0b972fcc05149f237318f1a516c1c6bee6ce20
Diffstat (limited to 'src/tc-switchuser.c')
-rw-r--r--src/tc-switchuser.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/tc-switchuser.c b/src/tc-switchuser.c
index 3bb3fe9..1763527 100644
--- a/src/tc-switchuser.c
+++ b/src/tc-switchuser.c
@@ -1,14 +1,7 @@
-/*
- * Copyright Jan Engelhardt
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the WTF Public License version 2 or
- * (at your option) any later version.
- */
+// SPDX-License-Identifier: MIT
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
-#if defined(HAVE_INITGROUPS)
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
@@ -17,6 +10,7 @@
#include <libHX/defs.h>
#include <libHX/option.h>
#include <libHX/proc.h>
+#if defined(HAVE_INITGROUPS)
static char *user_name, *group_name;
static const struct HXoption options_table[] = {
@@ -70,4 +64,9 @@ int main(int argc, const char **argv)
}
return EXIT_SUCCESS;
}
+#else
+int main(void)
+{
+ return EXIT_SUCCESS;
+}
#endif