git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2562723
)
Move some bytes from the data to the text segment
author
Volker Lendecke
<vl@samba.org>
Thu, 19 Feb 2009 22:26:06 +0000
(23:26 +0100)
committer
Volker Lendecke
<vl@samba.org>
Sat, 21 Feb 2009 11:53:49 +0000
(12:53 +0100)
source3/libsmb/libsmb_path.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/libsmb_path.c
b/source3/libsmb/libsmb_path.c
index 3ea03446d8931d38d79659097bb6c7429293394e..6a59a12ed06648d87ff7013bbaba79497c17aa00 100644
(file)
--- a/
source3/libsmb/libsmb_path.c
+++ b/
source3/libsmb/libsmb_path.c
@@
-216,7
+216,7
@@
smbc_urlencode(char *dest,
* are supported.
*/
-static const char *smbc_prefix = "smb:";
+#define SMBC_PREFIX "smb:"
int
SMBC_parse_path(TALLOC_CTX *ctx,
@@
-263,8
+263,8
@@
SMBC_parse_path(TALLOC_CTX *ctx,
s = talloc_strdup(ctx, fname);
/* see if it has the right prefix */
- len = strlen(
smbc_prefix
);
- if (strncmp(s,
smbc_prefix
,len) || (s[len] != '/' && s[len] != 0)) {
+ len = strlen(
SMBC_PREFIX
);
+ if (strncmp(s,
SMBC_PREFIX
,len) || (s[len] != '/' && s[len] != 0)) {
return -1; /* What about no smb: ? */
}