[BACK]Return to sshconnect.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/sshconnect.h between version 1.17.14.2 and 1.18

version 1.17.14.2, 2006/10/06 03:19:33 version 1.18, 2005/12/06 22:38:28
Line 1 
Line 1 
 /* $OpenBSD$ */  /*      $OpenBSD$       */
   
 /*  /*
  * Copyright (c) 2000 Markus Friedl.  All rights reserved.   * Copyright (c) 2000 Markus Friedl.  All rights reserved.
Line 23 
Line 23 
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF   * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.   * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */   */
   #ifndef SSHCONNECT_H
   #define SSHCONNECT_H
   
 typedef struct Sensitive Sensitive;  typedef struct Sensitive Sensitive;
 struct Sensitive {  struct Sensitive {
Line 52 
Line 54 
 /*  /*
  * Macros to raise/lower permissions.   * Macros to raise/lower permissions.
  */   */
 #define PRIV_START do {                                 \  #define PRIV_START do {                         \
         int save_errno = errno;                         \          int save_errno = errno;                 \
         if (seteuid(original_effective_uid) != 0)       \          (void)seteuid(original_effective_uid);  \
                 fatal("PRIV_START: seteuid: %s",        \          errno = save_errno;                     \
                     strerror(errno));                   \  
         errno = save_errno;                             \  
 } while (0)  } while (0)
   
 #define PRIV_END do {                                   \  #define PRIV_END do {                           \
         int save_errno = errno;                         \          int save_errno = errno;                 \
         if (seteuid(original_real_uid) != 0)            \          (void)seteuid(original_real_uid);       \
                 fatal("PRIV_END: seteuid: %s",          \          errno = save_errno;                     \
                     strerror(errno));                   \  
         errno = save_errno;                             \  
 } while (0)  } while (0)
   
   #endif

Legend:
Removed from v.1.17.14.2  
changed lines
  Added in v.1.18