lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LYNX-DEV patch to not offer print option to save to disk (for captive ac


From: Nelson Henry Eric
Subject: LYNX-DEV patch to not offer print option to save to disk (for captive account)
Date: Tue, 8 Apr 1997 21:51:16 +0900 (JST)

The following patch in diff -c format blocks the print option to save
to disk when the command line switch `-restrictions=disk_save' is used
(I hope!).  This patch is against lynx2.7ac-0.38; the same patch against
lynx2-7-1 can be pulled down from `http://163.51.110.11/lynxdev/hack.html',
along with my patch to go directly to STARTFILE with `w' (no `m' => `y').

__Henry

*** lynx2-7/src/LYPrint.c.orig  Sat Mar 22 05:30:44 1997
--- lynx2-7/src/LYPrint.c       Tue Apr  8 21:09:33 1997
***************
*** 953,965 ****
            lines_in_file, pages, (pages > 1 ? "s" : ""));
      fputs(buffer,fp0);
  
!     if (no_print || child_lynx || no_mail)
!       fputs("Some print functions have been disabled!!!<br>\n", fp0);
  
      fputs("You have the following print choices.<br>\n", fp0);
      fputs("Please select one:<br>\n<pre>\n", fp0);
  
!     if (child_lynx == FALSE && no_print == FALSE)
          fprintf(fp0,
     "   <a href=\"LYNXPRINT://LOCAL_FILE/lines=%d\">Save to a local 
file</a>\n",
                lines_in_file);
--- 953,965 ----
            lines_in_file, pages, (pages > 1 ? "s" : ""));
      fputs(buffer,fp0);
  
!     if (no_print || no_disk_save || child_lynx || no_mail)
!       fputs("Some print functions have been disabled!<br>\n", fp0);
  
      fputs("You have the following print choices.<br>\n", fp0);
      fputs("Please select one:<br>\n<pre>\n", fp0);
  
!     if (no_print == FALSE && no_disk_save == FALSE && child_lynx == FALSE)
          fprintf(fp0,
     "   <a href=\"LYNXPRINT://LOCAL_FILE/lines=%d\">Save to a local 
file</a>\n",
                lines_in_file);
*** lynx2-7/src/LYMain.c.orig   Thu Apr  3 19:51:03 1997
--- lynx2-7/src/LYMain.c        Tue Apr  8 21:09:58 1997
***************
*** 1887,1893 ****
     dired_support   disallow local file management\n");
  #endif /* DIRED_SUPPORT */
                printf("\
!    disk_save       disallow saving binary files to disk in the download 
menu\n\
     dotfiles        disallow access to, or creation of, hidden (dot) files\n\
     download        disallow downloaders in the download menu\n\
     editor          disallow editing\n\
--- 1887,1893 ----
     dired_support   disallow local file management\n");
  #endif /* DIRED_SUPPORT */
                printf("\
!    disk_save       disallow saving binary files to disk (download and 
print)\n\
     dotfiles        disallow access to, or creation of, hidden (dot) files\n\
     download        disallow downloaders in the download menu\n\
     editor          disallow editing\n\
;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]