cvs: php4(PHP_4_3) /main streams.c

From: Date: Tue, 10 Dec 2002 16:18:59 +0000
Subject: cvs: php4(PHP_4_3) /main streams.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-17064@lists.php.net to get a copy of this message
edink Tue Dec 10 11:18:59 2002 EDT Modified files: (Branch: PHP_4_3) /php4/main streams.c Log: Improve UNC path detection. Index: php4/main/streams.c diff -u php4/main/streams.c:1.125.2.17 php4/main/streams.c:1.125.2.18 --- php4/main/streams.c:1.125.2.17 Mon Dec 9 11:22:06 2002 +++ php4/main/streams.c Tue Dec 10 11:18:59 2002 @@ -20,7 +20,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: streams.c,v 1.125.2.17 2002/12/09 16:22:06 wez Exp $ */ +/* $Id: streams.c,v 1.125.2.18 2002/12/10 16:18:59 edink Exp $ */ #define _GNU_SOURCE #include "php.h" @@ -1773,7 +1773,7 @@ #ifdef PHP_WIN32 /* skip the sanity check; fstat doesn't appear to work on * UNC paths */ - is_unc = (filename[0] == '\\' && filename[1] == '\\'); + is_unc = IS_UNC_PATH(filename, strlen(filename)); #endif if (!is_unc) { goto err;

« previous php.cvs (#17064) next »