Bug 823

Summary: Clarify configure switch `--with-rundir`
Product: Sudo Reporter: Paul Menzel <pmenzel+bugzilla.sudo.ws>
Component: DocumentationAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED FIXED    
Severity: normal    
Priority: low    
Version: 1.8.22   
Hardware: PC   
OS: Linux   

Description Paul Menzel 2018-02-19 01:04:05 MST
Currently, `./configure --help` documents `--with-rundir` as below.

```
  --with-rundir=DIR       path to the sudo time stamp parent dir
```

While `INSTALL` contains the following.

```
  --with-rundir=DIR
        Set the directory to be used for sudo-specific files that
        do not survive a system reboot.  This is typically where
        the time stamp directory is located.  By default, configure
        will use the first existing directory in the following list:
            /var/run, /var/db, /var/lib, /var/adm, /usr/adm
```

Reading this, I specified `/run` and *not* `/run/sudo`, as it wasn’t clear to me, that the sudo time stamp directory is a subdirectory `ts`. Especially, as the example list in `INSTALL` also does not contain `sudo` in there.

Unfortunately, I did not come up with a satisfying solution yet. Maybe in the configure description `/var/run/sudo` (or `/run/sudo`) could be given as an example.

> path to the sudo time stamp parent dir, e. g. `/var/run/sudo`

In the file `INSTALL`, maybe the text below.

> By default, configure will add `sudo` to the path of the first
> existing directory in the following list:
Comment 1 Todd C. Miller 2018-02-19 11:28:02 MST
I've tired to clarify this in
https://www.sudo.ws/repos/sudo/rev/e1913085e544
Comment 2 Todd C. Miller 2018-05-01 07:05:59 MDT
Fixed in sudo 1.8.23