git.samba.org
/
amitay
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78eae77
)
libsmb: Use IS[DOT]DOT
author
Volker Lendecke
<vl@samba.org>
Sat, 22 Feb 2020 10:48:45 +0000
(11:48 +0100)
committer
Jeremy Allison
<jra@samba.org>
Tue, 25 Feb 2020 17:44:44 +0000
(17:44 +0000)
strequal is not necessary here
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libsmb/libsmb_file.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/libsmb_file.c
b/source3/libsmb/libsmb_file.c
index 29801d9fa3ca8fd13cdc5f6d348538a443daade6..84a2c0a726cb611a81f0624d7f57e755d03e17d3 100644
(file)
--- a/
source3/libsmb/libsmb_file.c
+++ b/
source3/libsmb/libsmb_file.c
@@
-471,7
+471,7
@@
SMBC_getatr(SMBCCTX * context,
}
/* path fixup for . and .. */
- if (
strequal(path, ".") || strequal(path, ".."
)) {
+ if (
ISDOT(path) || ISDOTDOT(path
)) {
fixedpath = talloc_strdup(frame, "\\");
if (!fixedpath) {
errno = ENOMEM;