In addition, safecat starts a 24-hour timer before creating tempdir/, andĪborts the write if the timer expires. At that instant the data has been successfully written. Sixth, the program link()s the file toĭestdir/. Program NFS-writes the message to the file. Third, if stat() returned anything other thanĮNOENT, the program sleeps for two seconds, updates time, and tries the stat() again, a Where time is the number of seconds since the beginning of 1970 GMT, pid is the program's First, it stat()s the two directories tempdir and destdir, and exits unless bothĭirectories exist and are writable. The maildirĪlgorithm is immune to this problem because it uses no locks at all.Īs described in maildir(5), safecat applies the maildir algorithm by writing data in six Anyone who hasĭeleted $HOME/.netscape/lock in order to start netscape can attest to this. Synchronizing mechanisms, but such mechanisms are subject to failure. Common strategies to resolve this problem involve creation of lock files or other Result in a collision, in which one write succeeds and the other appears to succeed butįails. Systems like mh- mail store files using numeric names in a directory. Many people or programs may write data to a common "spool" directory. Professor Bernstein's maildir algorithm, every file is guaranteed complete or nonexistent. Many mail delivery agents, this means that the data will be silently truncated. Examples of such a process are daemons, cron jobs, and mail readers.Ī machine may crash while data is being written to disk. Safecat, a single, separate process should handle naming, collecting, and deleting theseįiles. User should rename the file after safecat completes. If particular filenames are desired, then the The file name is selected by safecat to ensure that no filename collisions occur,Įven if many safecat processes and other programs implementing the maildir algorithm are When saving data with safecat, the user specifies a destination directory, but not a file Second, if a file exists in theĭestination directory, placed there by safecat, then the file is guaranteed to be Guaranteed to be saved in the destination directory. First, if safecat returns a successful exit status, then all data is The current version can be obtainedĢ005-2017 Don Armstrong, and many other contributors.SYNOPSIS safecat tempdir destdir INTRODUCTION safecat is a program which implements Professor Daniel Bernstein's maildir algorithm toĬopy stdin safely to a file in a specified directory. ĭebbugs is free software and licensed under the terms of the GNU Send a report that this bug log contains spam.ĭebian bug tracking system administrator. Ii libc6 2.3.2.ds1-10 GNU C Library: Shared libraries an I actually made a NMU (though I'm not a Debian developer) for it, atīut I wasn't sure of the proper procedure for reporting a bug that I'veįixed in this manner. then in the debian/rules file, add this line: +++ -1,4 +1,4 first line of this file gives the top-level directory for installation.įiles will be installed in the appropriate subdirectories bin, lib, Received: from () īy with smtp (Exim 3.35 1 (Debian)) X-Loop: Bug#220849: safecat: maildir program should be installed
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |