diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2014-06-04 06:53:35 +0200 | 
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2014-06-04 06:58:02 +0200 | 
| commit | 6b0655a25194c7c0331154edaa6124cf783e5e5e (patch) | |
| tree | c0c7d479f2684531249668210da27a60322ba395 /lib/privs.c | |
| parent | fdb913aedb5a9807ad60715e8badb4f25d57acea (diff) | |
*: nuke ^L (page feed)
Quagga sources have inherited a slew of Page Feed (^L, \xC) characters
from ancient history.  Among other things, these break patchwork's
XML-RPC API because \xC is not a valid character in XML documents.
Nuke them from high orbit.
Patches can be adapted simply by:
	sed -e 's%^L%%' -i filename.patch
(you can type page feeds in some environments with Ctrl-V Ctrl-L)
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/privs.c')
| -rw-r--r-- | lib/privs.c | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/privs.c b/lib/privs.c index 69606f57c1..e182543a63 100644 --- a/lib/privs.c +++ b/lib/privs.c @@ -47,7 +47,7 @@ struct _pset {  typedef cap_value_t pvalue_t;  typedef struct _pset pset_t;  typedef cap_t pstorage_t; - +  #elif defined (HAVE_SOLARIS_CAPABILITIES)  typedef priv_t pvalue_t;  typedef priv_set_t pset_t; @@ -56,7 +56,7 @@ typedef priv_set_t *pstorage_t;  #error "HAVE_CAPABILITIES defined, but neither LCAPS nor Solaris Capabilties!"  #endif /* HAVE_LCAPS */  #endif /* HAVE_CAPABILITIES */ - +  /* the default NULL state we report is RAISED, but could be LOWERED if   * zprivs_terminate is called and the NULL handler is installed.   */ @@ -139,7 +139,7 @@ static struct    [ZCAP_FOWNER] =	{ 1, (pvalue_t []) { PRIV_FILE_OWNER		}, },  #endif /* HAVE_SOLARIS_CAPABILITIES */  }; - +  #ifdef HAVE_LCAPS  /* Linux forms of capabilities methods */  /* convert zebras privileges to system capabilities */ @@ -339,7 +339,7 @@ zprivs_caps_terminate (void)    cap_free (zprivs_state.caps);  }  #elif defined (HAVE_SOLARIS_CAPABILITIES) /* !HAVE_LCAPS */ - +  /* Solaris specific capability/privilege methods    *   * Resources: @@ -556,7 +556,7 @@ zprivs_caps_terminate (void)  #error "Neither Solaris nor Linux capabilities, dazed and confused..."  #endif /* HAVE_LCAPS */  #endif /* HAVE_CAPABILITIES */ - +  int  zprivs_change_uid (zebra_privs_ops_t op)  {  | 
