]> wimlib.net Git - wimlib/commit
Message queue name calculation
authorEric Biggers <ebiggers3@gmail.com>
Sun, 28 Oct 2012 21:12:43 +0000 (16:12 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Sun, 28 Oct 2012 21:12:43 +0000 (16:12 -0500)
commita74b18bea7d988a718da91143b6a1374736bb1a9
tree0bcd5448b9ce6c454f49b49d93d27e05b05ecb56
parente19e6cdb47421f16071fbe933494b12e7ed17504
Message queue name calculation

- Use absolute path for directory name instead of base name.  This avoids issues
  with multiple directories with the same name, with trailing slashes on the
  directory name, and with symbolic links.
- Substitute slashes in the directory path with character 0xff to form a valid
  message queue name and avoid possible conflicts with real pathnames.
- Truncate the message queue name if it comes out to more than NAME_MAX bytes.
src/mount.c