chiark / gitweb /
basic: when parsing verb command lines, optionally shortcut them in chroot() environments
authorLennart Poettering <lennart@poettering.net>
Thu, 28 Jan 2016 18:30:56 +0000 (19:30 +0100)
committerSven Eden <yamakuzure@gmx.net>
Wed, 17 May 2017 13:22:15 +0000 (15:22 +0200)
This adds some basic infrastructure in order to fix #2015.

src/basic/verbs.h

index d59e4d5..4132cad 100644 (file)
@@ -22,7 +22,8 @@
 ***/
 
 #define VERB_ANY ((unsigned) -1)
-#define VERB_DEFAULT 1
+#define VERB_DEFAULT 1U
+#define VERB_NOCHROOT 2U
 
 typedef struct {
         const char *verb;