projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Renamed r1bindex() to mhbasename(), to make its function becomes clear.
[mmh]
/
uip
/
spost.c
diff --git
a/uip/spost.c
b/uip/spost.c
index
e87fcf1
..
0679ac6
100644
(file)
--- a/
uip/spost.c
+++ b/
uip/spost.c
@@
-202,7
+202,7
@@
main(int argc, char **argv)
#ifdef LOCALE
setlocale(LC_ALL, "");
#endif
#ifdef LOCALE
setlocale(LC_ALL, "");
#endif
- invo_name = r1bindex(argv[0], '/');
+ invo_name = mhbasename(argv[0]);
/* foil search of user profile/context */
if (context_foil(NULL) == -1)
/* foil search of user profile/context */
if (context_foil(NULL) == -1)
@@
-795,7
+795,7
@@
make_bcc_file(void)
cpydgst(fd, fileno(out), tmpfil, bccfil);
close(fd);
} else {
cpydgst(fd, fileno(out), tmpfil, bccfil);
close(fd);
} else {
- vec[0] = r1bindex(mhlproc, '/');
+ vec[0] = mhbasename(mhlproc);
for (i = 0; (child_id = vfork()) == NOTOK && i < 5; i++)
sleep(5);
for (i = 0; (child_id = vfork()) == NOTOK && i < 5; i++)
sleep(5);
@@
-871,7
+871,7
@@
fcc(char *file, char *folder)
case OK:
snprintf(fold, sizeof(fold), "%s%s",
*folder == '+' || *folder == '@' ? "" : "+", folder);
case OK:
snprintf(fold, sizeof(fold), "%s%s",
*folder == '+' || *folder == '@' ? "" : "+", folder);
- execlp(fileproc, r1bindex(fileproc, '/'),
+ execlp(fileproc, mhbasename(fileproc),
"-link", "-file", file, fold, NULL);
_exit(-1);
"-link", "-file", file, fold, NULL);
_exit(-1);