]> git.pld-linux.org Git - packages/LPRng.git/commitdiff
- patches from rawhide.
authorkloczek <kloczek@pld-linux.org>
Fri, 27 Apr 2001 20:05:00 +0000 (20:05 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    LPRng-manpage.patch -> 1.1
    LPRng-shutdown.patch -> 1.1

LPRng-manpage.patch [new file with mode: 0644]
LPRng-shutdown.patch [new file with mode: 0644]

diff --git a/LPRng-manpage.patch b/LPRng-manpage.patch
new file mode 100644 (file)
index 0000000..057484f
--- /dev/null
@@ -0,0 +1,11 @@
+--- LPRng-3.7.4/man/lpr.1.dest Fri Feb  2 09:03:49 2001
++++ LPRng-3.7.4/man/lpr.1      Fri Feb  2 09:04:19 2001
+@@ -261,7 +261,7 @@
+ the destination printer
+ is taken from
+ the command line
+-.I dest
++.I printer
+ value,
+ then
+ the environment variables
diff --git a/LPRng-shutdown.patch b/LPRng-shutdown.patch
new file mode 100644 (file)
index 0000000..8f24468
--- /dev/null
@@ -0,0 +1,235 @@
+--- LPRng-3.7.4/src/common/sendjob.c.shutdown  Sun Feb 25 21:54:07 2001
++++ LPRng-3.7.4/src/common/sendjob.c   Sun Feb 25 21:55:40 2001
+@@ -195,7 +195,7 @@
+  error:
+-      if( sock >= 0 ) shutdown(sock,1);
++/*    if( sock >= 0 ) shutdown(sock,1); */
+       if( status ){
+               if( (s = Find_str_value(&job->info,ERROR,Value_sep )) ){
+                       SETSTATUS(logjob) "job '%s' transfer to %s@%s failed\n  %s",
+@@ -508,9 +508,9 @@
+                               status = Link_copy( RemoteHost_DYN, sock, 0, transfer_timeout,
+                                               openname, fd, size );
+                       }
+-                      if( fd == 0 ){
++/*                    if( fd == 0 ){
+                               shutdown(*sock,1);
+-                      }
++                      }*/
+                       if( status 
+                               || ( fd !=0 && (status = Link_send( RemoteHost_DYN,sock,
+                                       transfer_timeout,"",1,&ack )) ) ){
+--- LPRng-3.7.4/src/common/sendauth.c.shutdown Sun Feb 25 21:55:50 2001
++++ LPRng-3.7.4/src/common/sendauth.c  Sun Feb 25 21:56:40 2001
+@@ -157,7 +157,7 @@
+                               tempfile);
+               }
+               /* we turn off IO from the socket */
+-              shutdown(*sock,1);
++/*            shutdown(*sock,1);*/
+               if( (s = safestrchr(buffer,'\n')) ) *s = 0;
+               SNPRINTF( error, errlen)
+                       "error '%s' sending '%s' to %s@%s\n",
+@@ -345,7 +345,7 @@
+       DEBUG2("Pgp_send: sent file" );
+       close(tempfd); tempfd = -1;
+       /* we close the writing side */
+-      shutdown( *sock, 1 );
++/*    shutdown( *sock, 1 );*/
+       if( (tempfd = Checkwrite(pgpfile,&statb,O_WRONLY|O_TRUNC,1,0)) < 0){
+               SNPRINTF(error,errlen)
+                       "Pgp_send: open '%s' for write failed - %s", pgpfile, Errormsg(errno));
+--- LPRng-3.7.4/src/common/lpstat.c.shutdown   Sun Feb 25 21:57:03 2001
++++ LPRng-3.7.4/src/common/lpstat.c    Sun Feb 25 21:57:19 2001
+@@ -243,7 +243,7 @@
+       fd = Send_request( 'Q', Displayformat,
+               0, Connect_timeout_DYN, Send_query_rw_timeout_DYN, 1 );
+       if( fd >= 0 ){
+-              shutdown( fd, 1 );
++/*            shutdown( fd, 1 );*/
+               Read_status_info( RemoteHost_DYN, fd,
+                       1, Send_query_rw_timeout_DYN, display_format,
+                       Status_line_count );
+--- LPRng-3.7.4/src/common/lpc.c.shutdown      Sun Feb 25 21:59:14 2001
++++ LPRng-3.7.4/src/common/lpc.c       Sun Feb 25 21:59:33 2001
+@@ -364,7 +364,7 @@
+               fd = Send_request( 'C', REQ_CONTROL, l.list, Connect_timeout_DYN,
+                       Send_query_rw_timeout_DYN, 1 );
+               if( fd > 0 ){
+-                      shutdown( fd, 1 );
++/*                    shutdown( fd, 1 );*/
+                       while( (n = read(fd, msg, sizeof(msg))) > 0 ){
+                               if( (write(1,msg,n)) < 0 ) cleanup(0);
+                       }
+--- LPRng-3.7.4/src/common/lpr.c.shutdown      Sun Feb 25 21:59:46 2001
++++ LPRng-3.7.4/src/common/lpr.c       Sun Feb 25 22:00:00 2001
+@@ -222,7 +222,7 @@
+               DEBUG1("lpr: after shutdown fd %d, status_fd %d", fd, status_fd );
+               if( status_fd > 0 ){
+                       /* we shut down this connection as well */
+-                      shutdown(status_fd,1);
++/*                    shutdown(status_fd,1);*/
+                       /* we wait for eof on status_fd */
+                       buffer[0] = 0;
+                       Get_status_from_OF(&prjob,"LP",pid,
+--- LPRng-3.7.4/src/common/lpq.c.shutdown      Sun Feb 25 22:00:21 2001
++++ LPRng-3.7.4/src/common/lpq.c       Sun Feb 25 22:00:35 2001
+@@ -231,7 +231,7 @@
+               &argv[Optind], Connect_timeout_DYN,
+               Send_query_rw_timeout_DYN, 1 );
+       if( fd >= 0 ){
+-              shutdown( fd, 1 );
++/*            shutdown( fd, 1 );*/
+               if( Read_status_info( RemoteHost_DYN, fd,
+                       1, Send_query_rw_timeout_DYN, Displayformat,
+                       Status_line_count ) ){
+--- LPRng-3.7.4/src/common/linelist.c.shutdown Sun Feb 25 22:00:55 2001
++++ LPRng-3.7.4/src/common/linelist.c  Sun Feb 25 22:01:53 2001
+@@ -3612,7 +3612,7 @@
+       if( fd < 0 || fstat( fd, &statb ) == -1 ){
+               fd = -1;
+-      } else if( !(S_ISSOCK(statb.st_mode)) || shutdown( fd, 1 ) == -1 ){
++      } else if( !(S_ISSOCK(statb.st_mode))/* || shutdown( fd, 1 ) == -1*/ ){
+               close(fd);
+               fd = -1;
+       }
+--- LPRng-3.7.4/src/common/lprm.c.shutdown     Sun Feb 25 22:02:05 2001
++++ LPRng-3.7.4/src/common/lprm.c      Sun Feb 25 22:02:16 2001
+@@ -244,7 +244,7 @@
+       fd = Send_request( 'M', REQ_REMOVE,
+               argv, Connect_timeout_DYN, Send_query_rw_timeout_DYN, 1 );
+       if( fd > 0 ){
+-              shutdown( fd, 1 );
++/*            shutdown( fd, 1 );*/
+               while( (n = read(fd, msg, sizeof(msg)) ) > 0 ){
+                       if( write(1,msg,n) < 0 ) cleanup(0);
+               }
+--- LPRng-3.7.4/src/common/krb5_auth.c.shutdown        Sun Feb 25 22:02:36 2001
++++ LPRng-3.7.4/src/common/krb5_auth.c Sun Feb 25 22:03:27 2001
+@@ -698,14 +698,14 @@
+       close(fd);
+       fd = -1;
+       DEBUG1( "client_krb5_auth: file copy finished %s", file );
+-      if( shutdown(sock, 1) == -1 ){
++/*    if( shutdown(sock, 1) == -1 ){
+               SNPRINTF( err, errlen) "%s client_krb5_auth failed - "
+                       "shutdown failed '%s'",
+                       Is_server?"on server":"on client",
+                       Errormsg(errno) );
+               retval = 1;
+               goto done;
+-      }
++      }*/
+       fd = Checkwrite( file, &statb, O_WRONLY|O_TRUNC, 1, 0 );
+       if( fd < 0 ){
+               SNPRINTF( err, errlen)
+@@ -1146,7 +1146,7 @@
+       if( status ){
+               SETSTATUS(job) "Printer %s@%s does not support krb4 authentication",
+                       RemotePrinter_DYN, host);
+-              shutdown(*sock,1);
++/*            shutdown(*sock,1);*/
+               return JFAIL;
+       }
+       memset(&ticket,0,sizeof(ticket));
+@@ -1158,7 +1158,7 @@
+       if( status != KSUCCESS ){
+               SNPRINTF(errmsg, errlen) "krb4 authentication failed to %s@%s - %s",
+                       RemotePrinter_DYN, host, krb4_err_str(status));
+-              shutdown(*sock,1);
++/*            shutdown(*sock,1);*/
+               return JFAIL;
+       }
+       buffer[0] = 0;
+@@ -1171,7 +1171,7 @@
+       if(status){
+               SNPRINTF(errmsg, errlen) "cannot read status from %s@%s - %s",
+                       RemotePrinter_DYN, host );
+-              shutdown(*sock,1);
++/*            shutdown(*sock,1);*/
+               return JFAIL;
+       } else {
+               SETSTATUS(job)"krb4 authentication succeeded to %s@%s",
+--- LPRng-3.7.4/src/common/lpd_status.c.shutdown       Sun Feb 25 22:03:47 2001
++++ LPRng-3.7.4/src/common/lpd_status.c        Sun Feb 25 22:04:13 2001
+@@ -1169,7 +1169,7 @@
+                                       Send_query_rw_timeout_DYN, *sock );
+                               if( fd >= 0 ){
+                                       char *tempfile;
+-                                      shutdown( fd, 1 );
++/*                                    shutdown( fd, 1 );*/
+                                       tempfd = Make_temp_fd( &tempfile );
+                                       while( (nx = read(fd,msg,sizeof(msg))) > 0 ){
+                                               if( Write_fd_len(tempfd,msg,nx) < 0 ) cleanup(0);
+@@ -1341,7 +1341,7 @@
+               fd = Send_request( 'Q', displayformat, tokens->list, Connect_timeout_DYN,
+                       Send_query_rw_timeout_DYN, *sock );
+               if( fd >= 0 ){
+-                      shutdown( fd, 1 );
++/*                    shutdown( fd, 1 );*/
+                       tempfd = Make_temp_fd( 0 );
+                       while( (n = read(fd,msg,sizeof(msg))) > 0 ){
+                               if( Write_fd_len(tempfd,msg,n) < 0 ) cleanup(0);
+--- LPRng-3.7.4/src/common/lpd_remove.c.shutdown       Sun Feb 25 22:04:27 2001
++++ LPRng-3.7.4/src/common/lpd_remove.c        Sun Feb 25 22:04:49 2001
+@@ -352,7 +352,7 @@
+                       fd = Send_request( 'M', REQ_REMOVE, tokens->list, Connect_timeout_DYN,
+                               Send_query_rw_timeout_DYN, *sock );
+                       if( fd >= 0 ){
+-                              shutdown( fd, 1 );
++/*                            shutdown( fd, 1 );*/
+                               while( (c = read(fd,msg,sizeof(msg))) > 0 ){
+                                       Write_fd_len(*sock,msg,c);
+                               }
+@@ -414,7 +414,7 @@
+       fd = Send_request( 'M', REQ_REMOVE, tokens->list, Connect_timeout_DYN,
+               Send_query_rw_timeout_DYN, *sock );
+       if( fd >= 0 ){
+-              shutdown( fd, 1 );
++/*            shutdown( fd, 1 );*/
+               while( (n = read(fd,msg,sizeof(msg))) > 0 ){
+                       Write_fd_len(*sock,msg,n);
+               }
+--- LPRng-3.7.4/src/common/user_auth.stub.shutdown     Sun Feb 25 22:05:08 2001
++++ LPRng-3.7.4/src/common/user_auth.stub      Sun Feb 25 22:05:47 2001
+@@ -350,7 +350,7 @@
+       }
+       close(tempfd); tempfd = -1;
+       /* we close the writing side */
+-      shutdown( *sock, 1 );
++/*    shutdown( *sock, 1 );*/
+       DEBUG1("Test_send: sent file" );
+@@ -724,7 +724,7 @@
+   error:
+       if( errmsg[0] && *sock ){
+-              shutdown(*sock,1);
++/*            shutdown(*sock,1);*/
+               len = 0;
+               buffer[0] = 0;
+               DEBUG1("md5_connect: error '%s'", errmsg );
+@@ -1193,7 +1193,7 @@
+       }
+       close(tempfd); tempfd = -1;
+       /* we close the writing side */
+-      shutdown( *sock, 1 );
++/*    shutdown( *sock, 1 );*/
+       DEBUG1("md5_send: sent file" );
+--- LPRng-3.7.4/src/common/accounting.c.shutdown       Sun Feb 25 22:05:57 2001
++++ LPRng-3.7.4/src/common/accounting.c        Sun Feb 25 22:06:21 2001
+@@ -78,7 +78,7 @@
+                       err = JABORT;
+                       LOGERR(LOG_INFO)"Do_accounting: write to %s failed", command);
+               }
+-              shutdown(tempfd,1);
++/*            shutdown(tempfd,1);*/
+       } else {
+               tempfd = Checkwrite( Accounting_file_DYN, &statb, 0, Create_files_DYN, 0 );
+               DEBUG2("Setup_accounting: fd %d", tempfd );
This page took 0.036289 seconds and 4 git commands to generate.