File: README

package info (click to toggle)
gs 3.33-7
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 7,436 kB
  • ctags: 15,511
  • sloc: ansic: 92,150; asm: 684; sh: 486; makefile: 91
file content (17 lines) | stat: -rw-r--r-- 721 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
The wrapper /usr/bin/gs checks if it is executed setuid. In this case
it aborts --- otherwise the user can execute programs with root
privileges by setting variable $GSREAL (see below).

Then it checks to see if the user gave any papersize options -- if
not, it'll add "-dDEVICEWIDTHPOINTS=..." (and height), and it will
read the width and height to use from libpaper.

Then it checks to see if $DISPLAY is defined in the environment -- if
not, it'll add "-sDEVICE=lvga256" to the command line (x11 is the
default device).

Finally it executes $GSREAL, or if that variable is not defined,
/usr/lib/ghostscript/M.NN/gs.real.

Please read /usr/doc/setuid id you want gs to be executed by the users
on the virtual consoles.