Article View: comp.sys.sun
Article #10081Palette1.0 patch 1 (I blew it.)
From: mesard
Date: Thu, 05 Jan 1989 07:34
Date: Thu, 05 Jan 1989 07:34
56 lines
2054 bytes
2054 bytes
Here's a simple patch to Palette. I left the O_RDONLY off of an open(2).
This causes problems for 386 and SPARC people. Pretty embarassing. I
even lint'ed this code several times. Happily, no one's reported any 4.0
problems. (I don't have access to a 4.0 machine, and so I couldn't test
it before release.)
Sorry for the SNAFU. Please apply immediately.
void Wayne_Mesard(); Mesard@BBN.COM Bolt Beranek and Newman, Cambridge, MA
-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-
*** patchlevel.h~ Thu Dec 29 09:54:38 1988
--- patchlevel.h Thu Dec 29 09:55:18 1988
***************
*** 1,2
#define VERSION_STRING "Palette Version 1.0"
! #define PATCHLEVEL 0
--- 1,2 -----
#define VERSION_STRING "Palette Version 1.0"
! #define PATCHLEVEL 1
*** desktop.c~ Thu Dec 29 09:54:47 1988
--- desktop.c Thu Dec 29 09:57:19 1988
***************
*** 25,30
#include <suntool/panel.h>
#include <sunwindow/win_enum.h>
#include <stdio.h>
#include "wsm_types.h"
--- 25,31 -----
#include <suntool/panel.h>
#include <sunwindow/win_enum.h>
#include <stdio.h>
+ #include <sys/file.h>
#include "wsm_types.h"
***************
*** 62,68
struct screen rootscreen;
win_screenget((int) window_get(win, WIN_FD), &rootscreen);
! return(open(rootscreen.scr_rootname));
}
--- 63,69 -----
struct screen rootscreen;
win_screenget((int) window_get(win, WIN_FD), &rootscreen);
! return(open(rootscreen.scr_rootname, O_RDONLY));
}
Technical Details
Message-ID:
<8812291520.AA25919@rice.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!unmvax!ncar!ames!husc6!rice!sun-spots-requestShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!unmvax!ncar!ames!husc6!rice!sun-spots-request From: mesard@bbn.com Newsgroups: comp.sys.sun Subject: Palette1.0 patch 1 (I blew it.) Message-ID: <8812291520.AA25919@rice.edu> Date: 5 Jan 89 07:34:21 GMT Sender: usenet@rice.edu Organization: Faculteit Wiskunde & Informatica, Universiteit van Amsterdam Lines: 56 Approved: Sun-Spots@rice.edu Original-Date: Thu, 29 Dec 88 10:13:37 -0500 X-Sun-Spots-Digest: Volume 7, Issue 89, message 10 of 11