about summary refs log tree commit diff
path: root/src/nix-env/user-env.cc
diff options
context:
space:
mode:
authorKirill Elagin <kirelagin@gmail.com>2015-07-13T12·25+0300
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-08-07T01·35+0200
commit3b0f60e5c2a1a573bec46740982b48ca32b835c4 (patch)
treecc00f328f76e3071d33856104f43a71243bca22b /src/nix-env/user-env.cc
parent896428c81850bf53488e35fee2c40f8218f4574e (diff)
baseNameOf: Enhance `basename` compatibility
* If the path ends with a slash, drop it.
* If the remaining path doesn’t contain slashes, just return it.

Fixes #574.
Diffstat (limited to 'src/nix-env/user-env.cc')
0 files changed, 0 insertions, 0 deletions