~ubuntu-branches/ubuntu/saucy/apt/saucy

« back to all changes in this revision

Viewing changes to apt-pkg/contrib/fileutl.cc

  • Committer: Package Import Robot
  • Author(s): Michael Vogt, Michael Vogt, TJ
  • Date: 2012-08-28 12:06:48 UTC
  • mfrom: (1.4.53 sid)
  • Revision ID: package-import@ubuntu.com-20120828120648-lbw0q0611jn030bx
Tags: 0.9.7.5ubuntu1
[ Michael Vogt ]
* merged latest fixes from the debian-sid branch

[ TJ ]
* apt-pkg/contrib/netrc.cc:
  - increase LOGINSIZE/PASSWORDSIZE limits and add proper error
    if the limits are reached (LP: #1008289)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1748
1748
/* */
1749
1749
bool FileFd::Sync()
1750
1750
{
1751
 
#ifdef _POSIX_SYNCHRONIZED_IO
1752
1751
   if (fsync(iFd) != 0)
1753
1752
   {
1754
1753
      Flags |= Fail;
1755
1754
      return _error->Errno("sync",_("Problem syncing the file"));
1756
1755
   }
1757
 
#endif
1758
1756
   return true;
1759
1757
}
1760
1758
                                                                        /*}}}*/