~ubuntu-branches/ubuntu/gutsy/samba/gutsy-updates

« back to all changes in this revision

Viewing changes to source/libsmb/libsmb_compat.c

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Mitchell
  • Date: 2006-11-28 20:14:37 UTC
  • mfrom: (0.10.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061128201437-a6x4lzlhempazocp
Tags: 3.0.23d-1ubuntu1
* Merge from debian unstable.
* Drop python2.4-samba, replace with python-samba. Added Conflicts/Replaces
  on python2.4-samba
* Drop track-connection-dos.patch, ubuntu-winbind-panic.patch, 
  ubuntu-fix-ldap.patch, ubuntu-setlocale.patch, ubuntu-setlocale-fixes.patch
* Remaining Ubuntu changes:
  - Revert Debian's installation of mount.cifs and umount.cifs as suid
  - Comment out the default [homes] shares and add more verbose comments to
    explain what they do and how they work (closes: launchpad.net/27608)
  - Add a "valid users = %S" stanza to the commented-out [homes] section, to
    show users how to restrict access to \\server\username to only username.
  - Change the (commented-out) "printer admin" example to use "@lpadmin"
    instead of "@ntadmin", since the lpadmin group is used for spool admin.
  - Alter the panic-action script to encourage users to report their
    bugs in Ubuntu packages to Ubuntu, rather than reporting to Debian.
    Modify text to more closely match the Debian script
  - Munge our init script to deal with the fact that our implementation
    (or lack thereof) of log_daemon_msg and log_progress_msg differs
    from Debian's implementation of the same (Ubuntu #19691)
  - Kept ubuntu-auxsrc.patch: some auxilliary sources (undocumented in 
    previous changelogs)
  - Set default workgroup to MSHOME

Show diffs side-by-side

added added

removed removed

Lines of Context:
341
341
                   int flags)
342
342
{
343
343
        SMBCFILE * file = find_fd(fd);
 
344
        if (file == NULL) {
 
345
                errno = EBADF;
 
346
                return -1;
 
347
        }
344
348
        return statcont->setxattr(statcont, file->fname,
345
349
                                  name, value, size, flags);
346
350
}
367
371
                   size_t size)
368
372
{
369
373
        SMBCFILE * file = find_fd(fd);
 
374
        if (file == NULL) {
 
375
                errno = EBADF;
 
376
                return -1;
 
377
        }
370
378
        return statcont->getxattr(statcont, file->fname, name, value, size);
371
379
}
372
380
 
386
394
                      const char *name)
387
395
{
388
396
        SMBCFILE * file = find_fd(fd);
 
397
        if (file == NULL) {
 
398
                errno = EBADF;
 
399
                return -1;
 
400
        }
389
401
        return statcont->removexattr(statcont, file->fname, name);
390
402
}
391
403
 
408
420
                    size_t size)
409
421
{
410
422
        SMBCFILE * file = find_fd(fd);
 
423
        if (file == NULL) {
 
424
                errno = EBADF;
 
425
                return -1;
 
426
        }
411
427
        return statcont->listxattr(statcont, file->fname, list, size);
412
428
}
413
429