summaryrefslogtreecommitdiff
path: root/mount
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2011-01-25 21:40:46 +0100
committerKarel Zak <kzak@redhat.com>2011-01-31 15:51:06 +0100
commita804f444eb6c0a5232e37db3a58193fa2a549cd9 (patch)
tree027336f80ef190d98ce6c95662f5833b1ebad9af /mount
parenta2b3d0409589d9b3084c0bcaa32a7af07cee715c (diff)
downloadutil-linux-old-a804f444eb6c0a5232e37db3a58193fa2a549cd9.tar.gz
provide a workaround if program_invocation_short_name is missing
Try some replacements, such as getexecname() on Solaris and __progname on BSDs and Darwin. When not found, base program_invocation_short_name on the source filename it is used in, as not to require argv[0] to be passed along. This latter approach is not dynamic, but doesn't require code changes for all places where program_invocation_short_name is used now. Signed-off-by: Fabian Groffen <grobian@gentoo.org> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'mount')
0 files changed, 0 insertions, 0 deletions