Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1:Staging:C
ksh
ksh93-test.dif
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ksh93-test.dif of Package ksh
--- src/cmd/ksh93/bltins/test.c +++ src/cmd/ksh93/bltins/test.c 2014-02-17 16:21:04.138828304 +0000 @@ -48,12 +48,12 @@ #ifdef S_ISSOCK # if _pipe_socketpair # if _socketpair_shutdown_mode -# define isapipe(f,p) (test_stat(f,p)>=0&&S_ISFIFO((p)->st_mode)||S_ISSOCK((p)->st_mode)&&(p)->st_ino&&((p)->st_mode&(S_IRUSR|S_IWUSR))!=(S_IRUSR|S_IWUSR)) +# define isapipe(f,p) (test_stat(f,p)>=0&&(S_ISFIFO((p)->st_mode)||(S_ISSOCK((p)->st_mode)&&(p)->st_ino&&((p)->st_mode&(S_IRUSR|S_IWUSR))!=(S_IRUSR|S_IWUSR)))) # else -# define isapipe(f,p) (test_stat(f,p)>=0&&S_ISFIFO((p)->st_mode)||S_ISSOCK((p)->st_mode)&&(p)->st_ino) +# define isapipe(f,p) (test_stat(f,p)>=0&&(S_ISFIFO((p)->st_mode)||S_ISSOCK((p)->st_mode)&&(p)->st_ino)) # endif # else -# define isapipe(f,p) (test_stat(f,p)>=0&&S_ISFIFO((p)->st_mode)||S_ISSOCK((p)->st_mode)&&(p)->st_ino) +# define isapipe(f,p) (test_stat(f,p)>=0&&(S_ISFIFO((p)->st_mode)||S_ISSOCK((p)->st_mode)&&(p)->st_ino)) # endif # define isasock(f,p) (test_stat(f,p)>=0&&S_ISSOCK((p)->st_mode)) #else @@ -88,7 +88,7 @@ static int test_strmatch(Shell_t *shp,co int match[2*(MATCH_MAX+1)],n; register int c, m=0; register const char *cp=pat; - while(c = *cp++) + while((c = *cp++)) { if(c=='(') m++; @@ -470,7 +470,7 @@ int test_unop(Shell_t *shp,register int int test_binop(Shell_t *shp,register int op,const char *left,const char *right) { - register double lnum,rnum; + register double lnum = 0, rnum = 0; if(op&TEST_ARITH) { while(*left=='0')
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor