Changeset 375 for trunk/zoo-project/zoo-kernel/zoo_service_loader.c
- Timestamp:
- Oct 28, 2012, 2:09:47 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/zoo_service_loader.c
r370 r375 1838 1838 1839 1839 #ifdef DEBUG 1840 fprintf(stderr,"\n%i\n",i); 1840 fprintf(stderr,"\n%d\n",__LINE__); 1841 fflush(stderr); 1841 1842 dumpMaps(request_input_real_format); 1842 1843 dumpMaps(request_output_real_format); 1843 1844 dumpMap(request_inputs); 1844 fprintf(stderr,"\n%i\n",i); 1845 fprintf(stderr,"\n%d\n",__LINE__); 1846 fflush(stderr); 1845 1847 #endif 1846 1848 … … 1911 1913 1912 1914 sprintf(storageNameOnServer,"%s/%s",path->value,fileNameOnServer); 1915 printf("\n\nName on server %s\n",storageNameOnServer); 1916 #ifdef DEBUG 1913 1917 fprintf(stderr,"Name on server %s\n",storageNameOnServer); 1914 1918 fprintf(stderr,"fileNameOnServer: %s\n",fileNameOnServer); 1919 #endif 1915 1920 mode=S_IRWXU|S_IRGRP|S_IROTH; 1916 1921 targetFile = open (storageNameOnServer,O_RDWR|O_CREAT|O_TRUNC,S_IRWXU|S_IRGRP|S_IROTH); 1917 1922 if(targetFile<0){ 1923 #ifdef DEBUG 1918 1924 fprintf(stderr,"could not create the new file,%s\n",fileNameOnServer); 1925 #endif 1919 1926 }else{ 1920 1927 while (cgiFormFileRead(file, buffer, BufferLen, &got) ==cgiFormSuccess){ … … 1926 1933 cgiFormFileClose(file); 1927 1934 close(targetFile); 1935 #ifdef DEBUG 1928 1936 fprintf(stderr,"File \"%s\" has been uploaded",fileNameOnServer); 1937 #endif 1929 1938 } 1930 1939 }
Note: See TracChangeset
for help on using the changeset viewer.