Changeset 59ed424e in mainline for uspace/lib/fmgt/src/fsops.c


Ignore:
Timestamp:
2026-02-11T12:02:03Z (30 hours ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
f9c30b9a
Parents:
857fba8
git-author:
Jiri Svoboda <jiri@…> (2026-02-10 20:01:03)
git-committer:
Jiri Svoboda <jiri@…> (2026-02-11 12:02:03)
Message:

Do not print error when user requests abort because file exists.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/fmgt/src/fsops.c

    r857fba8 r59ed424e  
    8181 * @param fname Destination file name
    8282 * @param rfd Place to store file descriptor
    83  * @param rskip If @c true, skip existing file and continue
    84  * @return EOK on success or an error code
    85  */
    86 errno_t fmgt_create_file(fmgt_t *fmgt, const char *fname, int *rfd, bool *rskip)
     83 * @param raction If return value is EEXIST, fills in the action to take.
     84 * @return EOK on success or an error code
     85 */
     86errno_t fmgt_create_file(fmgt_t *fmgt, const char *fname, int *rfd,
     87    fmgt_exists_action_t *raction)
    8788{
    8889        fmgt_io_error_t err;
     
    9394        unsigned flags;
    9495        errno_t rc;
    95 
    96         *rskip = false;
    9796
    9897        do {
     
    110109                        fmgt_timer_start(fmgt);
    111110
    112                         if (exaction == fmgt_exr_skip)
    113                                 *rskip = true;
     111                        *raction = exaction;
    114112                        if (exaction != fmgt_exr_overwrite)
    115113                                break;
Note: See TracChangeset for help on using the changeset viewer.