Bug 823 - Clarify configure switch `--with-rundir`
Clarify configure switch `--with-rundir`
Status: RESOLVED FIXED
Product: Sudo
Classification: Unclassified
Component: Documentation
1.8.22
PC Linux
: low normal
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-02-19 01:04 MST by Paul Menzel
Modified: 2018-05-01 07:05 MDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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