summaryrefslogtreecommitdiffstats
path: root/source/smbd/server.c
diff options
context:
space:
mode:
authorSamba Release Account <samba-bugs@samba.org>1997-07-08 16:54:44 +0000
committerSamba Release Account <samba-bugs@samba.org>1997-07-08 16:54:44 +0000
commit9385ae1005f13c8ed51f1319e3949b5c8571e62d (patch)
treea302f2844dca8b60aaf0f37678eca1f087d3bc22 /source/smbd/server.c
parentb45fc6388fb08a566f9c241cb89f5dd07a70b28d (diff)
downloadsamba-9385ae1005f13c8ed51f1319e3949b5c8571e62d.tar.gz
samba-9385ae1005f13c8ed51f1319e3949b5c8571e62d.tar.xz
samba-9385ae1005f13c8ed51f1319e3949b5c8571e62d.zip
Makefile: Added AIX targets from Ole Holm Nielsen <Ole.H.Nielsen@uni-c.dk>
chgpasswd.c: Added Samba/GPL notice (for obvious reasons). clitar.c: Updated Copyright date to include 1997 (for obvious reasons). getsmbpass.c: Updated Copyright date to include 1997 (for obvious reasons). includes.h: Added stropts for solaris. loadparm.c: Changed comment for hide files option. nameconf.c: Updated Copyright date to include 1997 (for obvious reasons). nmbd.c: Updated Copyright date to include 1997 (for obvious reasons). pcap.c: Updated Copyright date to include 1997 (for obvious reasons). proto.h: Re-added accidentaly deleted smb_shm_ calls. quotas.c: Added AIX quota patch from Ole Holm Nielsen <ohnielse@fysik.dtu.dk> server.c: Optimization on calling is_hidden_path. Updated Copyrights. smb.h: Changed DEFAULT_FILES_TO_HIDE from "*/.*" to ".*". smbpass.c: Updated Copyright date to include 1997 (for obvious reasons). ufc.c: Updated Copyright date to include 1997 (for obvious reasons). util.c: Added last component code to is_in_path(). Jeremy (jallison@whistle.com)
Diffstat (limited to 'source/smbd/server.c')
-rw-r--r--source/smbd/server.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/smbd/server.c b/source/smbd/server.c
index 0361c5aa467..768c7c71bca 100644
--- a/source/smbd/server.c
+++ b/source/smbd/server.c
@@ -224,7 +224,9 @@ int dos_mode(int cnum,char *path,struct stat *sbuf)
result |= aHIDDEN;
}
- if (is_hidden_path(SNUM(cnum), path))
+ /* Optimization : Only call is_hidden_path if it's not already
+ hidden. */
+ if (!(result & aHIDDEN) && is_hidden_path(SNUM(cnum), path))
{
result |= aHIDDEN;
}
@@ -4189,7 +4191,7 @@ static void usage(char *pname)
reopen_logs();
DEBUG(2,("%s smbd version %s started\n",timestring(),VERSION));
- DEBUG(2,("Copyright Andrew Tridgell 1992-1995\n"));
+ DEBUG(2,("Copyright Andrew Tridgell 1992-1997\n"));
#ifndef NO_GETRLIMIT
#ifdef RLIMIT_NOFILE