source: trunk/debathena/third/alpine/alpine-1.00-creatdir.patch @ 23068

Revision 23068, 688 bytes checked in by ghudson, 16 years ago (diff)
Add a debathenify script for alpine. Currently only works for hardy and lenny.
  • pith/osdep/creatdir.c

    diff -ur alpine-1.00/pith/osdep/creatdir.c alpine-1.00+creatdir/pith/osdep/creatdir.c
    old new  
    4040int 
    4141create_mail_dir(char *dir) 
    4242{ 
     43    char tmp[MAXPATH+128]; 
     44 
    4345    if(our_mkdir(dir, MAILDIR_MODE) < 0) 
    4446      return(-1); 
    4547 
     
    4850 
    4951    /* Some systems need this, on others we don't care if it fails */ 
    5052    our_chown(dir, getuid(), getgid()); 
     53    sprintf(tmp, "fs sa %.*s system:anyuser none system:authuser none", 
     54           (int) MAXPATH, dir); 
     55    system(tmp); 
    5156#endif /* !_WINDOWS */ 
    5257 
    5358    return(0); 
Note: See TracBrowser for help on using the repository browser.