DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ T m

⟦8957605e7⟧ TextFile

    Length: 829 (0x33d)
    Types: TextFile
    Names: »main.c.rej«

Derivation

└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki
    └─ ⟦526ad3590⟧ »EUUGD11/gnu-31mar87/X.V10.R4.tar.Z« 
        └─⟦2109abc41⟧ 
            └─ ⟦this⟧ »./X.V10R4/obsolete/xterm/main.c.rej« 

TextFile

***************
*** 181,195
  
  	    if (strcmp (argv [ind], "-L") == 0) {
  		char tt[32];
! 		int mode = O_RDWR|O_NDELAY;
! 		loginflag = 1;
  		getty = argv[argc-1];
  		argc -= 1;
  		strcpy(tt,"/dev/");
  		strcat(tt, getty);
  		chown(tt, 0, 0);
  		chmod(tt, 0622);
! 		if (open(tt, mode, 0) < 0) {
  			consolepr("open failed\n");
  		}
  		signal(SIGHUP, SIG_IGN);
--- 181,200 -----
  
  	    if (strcmp (argv [ind], "-L") == 0) {
  		char tt[32];
! 
  		getty = argv[argc-1];
  		argc -= 1;
  		strcpy(tt,"/dev/");
  		strcat(tt, getty);
+ 		tt [5] = 'p';
+ 		loginpty = open (tt, O_RDWR, 0);
+ 		dup2(loginpty, 4);
+ 		close(loginpty);
+ 		loginpty = 4;
+ 		tt [5] = 't';
  		chown(tt, 0, 0);
  		chmod(tt, 0622);
! 		if (open(tt, O_RDWR, 0) < 0) {
  			consolepr("open failed\n");
  		}
  		signal(SIGHUP, SIG_IGN);