Ignore:
Timestamp:
23/05/06 15:09:39 (14 years ago)
Author:
spascoe
Message:

Added the autorisation hook bbftpd_private_authz. It appears to be called
correctly for a dir command.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/trunk/src/bbftp-server-3.2.0/bbftpd/bbftpd_rm.c

    r773 r983  
    7979    buffer[msglen] = '\0' ; 
    8080    msg_file = (struct mess_dir *) buffer ; 
     81#ifdef NDG_AUTH 
     82    if (bbftpd_private_authz(MSG_RM, (void *)msg_file, logmessage) != 0) { 
     83      syslog(BBFTPD_ERR, logmessage); 
     84      reply(MSG_BAD, logmessage); 
     85      FREE(buffer); 
     86      FREE(logmessage); 
     87      return 0; 
     88    } 
     89#endif // NDG_AUTH 
     90 
    8191    transferoption  = msg_file->transferoption ; 
    8292    filename = msg_file->dirname ; 
Note: See TracChangeset for help on using the changeset viewer.