aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-05-07 12:18:48 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-05-07 12:18:48 +0000
commit6bf05cf1ff3debbab2bcc482dffb821aa458177b (patch)
tree62e5266ba56c91dc6973f7badfdcfde8e81c2a4a /include
parentb153ace939f7ab2857605fe10c6ae3ebd903288a (diff)
downloadbusybox-w32-6bf05cf1ff3debbab2bcc482dffb821aa458177b.tar.gz
busybox-w32-6bf05cf1ff3debbab2bcc482dffb821aa458177b.tar.bz2
busybox-w32-6bf05cf1ff3debbab2bcc482dffb821aa458177b.zip
httpd: fix several bugs triggering by realtive path in -h DIR.
function old new delta handle_incoming_and_exit 2657 2659 +2 send_cgi_and_exit 869 862 -7 parse_conf 1647 1626 -21 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/2 up/down: 2/-28) Total: -26 bytes
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h
index dfcc96d5b..281152f5f 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -938,6 +938,10 @@ int bb_ask_confirmation(void);
938 938
939extern int bb_parse_mode(const char* s, mode_t* theMode); 939extern int bb_parse_mode(const char* s, mode_t* theMode);
940 940
941/* Concatenate path and filename to new allocated buffer.
942 * Add "/" only as needed (no duplicate "//" are produced).
943 * If path is NULL, it is assumed to be "/".
944 * filename should not be NULL. */
941char *concat_path_file(const char *path, const char *filename); 945char *concat_path_file(const char *path, const char *filename);
942char *concat_subpath_file(const char *path, const char *filename); 946char *concat_subpath_file(const char *path, const char *filename);
943const char *bb_basename(const char *name); 947const char *bb_basename(const char *name);