[xiph-cvs] cvs commit: icecast/src connection.c
Michael Smith
msmith at xiph.org
Fri Apr 18 07:59:26 PDT 2003
msmith 03/04/18 10:59:26
Modified: src connection.c
Log:
Only consider a path a candidate for file-serving if it exists AND is a normal
file (not a directory, etc.)
Revision Changes Path
1.68 +2 -1 icecast/src/connection.c
Index: connection.c
===================================================================
RCS file: /usr/local/cvsroot/icecast/src/connection.c,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -r1.67 -r1.68
--- connection.c 27 Mar 2003 17:09:41 -0000 1.67
+++ connection.c 18 Apr 2003 14:59:26 -0000 1.68
@@ -703,7 +703,8 @@
free(fullpath);
return;
}
- else if(fileserve && stat(fullpath, &statbuf) == 0)
+ else if(fileserve && stat(fullpath, &statbuf) == 0 &&
+ S_ISREG(statbuf.st_mode))
{
fserve_client_create(client, fullpath);
free(fullpath);
<p><p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list