From aff8b4f9aa3fa704805d389f983c172121e52f63 Mon Sep 17 00:00:00 2001 From: Joshua Daniel Franklin Date: Sat, 24 Jan 2004 08:09:45 +0000 Subject: 2004-01-24 Joshua Daniel Franklin * cygwinenv.sgml: Cleanup minor markup problems. * dll.sgml: Cleanup minor markup problems. * effectively.sgml: Cleanup minor markup problems. * gcc.sgml: Cleanup minor markup problems. * ntsec.sgml: Cleanup minor markup problems. * pathnames.sgml: Cleanup minor markup problems. * setup-net.sgml: Cleanup minor markup problems. * textbinary.sgml: Cleanup minor markup problems. * windres.sgml: Cleanup minor markup problems. --- winsup/doc/ntsec.sgml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'winsup/doc/ntsec.sgml') diff --git a/winsup/doc/ntsec.sgml b/winsup/doc/ntsec.sgml index 0a5fe42a8..9cbd0bb06 100644 --- a/winsup/doc/ntsec.sgml +++ b/winsup/doc/ntsec.sgml @@ -605,11 +605,11 @@ anymore. Porting a setuid application is illustrated by a short example: - + +#include /* Use the following define to determine the Windows version */ #define is_winnt (GetVersion() < 0x80000000) #endif @@ -641,16 +641,17 @@ a short example: /* Use standard method for W9X as well. */ hashed_password = crypt (cleartext_password, salt); if (!user_pwd_entry || - strcmp (hashed_password, user_pwd_entry->pw_password)) + strcmp (hashed_password, user_pwd_entry->pw_password)) error_exit; [...] /* Everything else remains the same! */ - setegid (user_pwd_entry->pw_gid); - seteuid (user_pwd_entry->pw_uid); + setegid (user_pwd_entry->pw_gid); + seteuid (user_pwd_entry->pw_uid); execl ("/bin/sh", ...); +]]> -- cgit v1.2.3