Changeset 79ea5af in mainline for uspace/app/bdsh/cmds/modules/cp/cp.c


Ignore:
Timestamp:
2017-03-30T20:47:53Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
67e881c
Parents:
ae7bfbbd
Message:

Rename unlink() to vfs_unlink_path() and _vfs_unlink() to vfs_unlink()

  • Also, remove rmdir()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/modules/cp/cp.c

    rae7bfbbd r79ea5af  
    236236                         */
    237237                        if (force && !interactive) {
    238                                 if (unlink(dest_path) != 0) {
     238                                if (vfs_unlink_path(dest_path) != EOK) {
    239239                                        printf("Unable to remove %s\n",
    240240                                            dest_path);
     
    247247                                if (overwrite) {
    248248                                        printf("Overwriting file: %s\n", dest_path);
    249                                         if (unlink(dest_path) != 0) {
     249                                        if (vfs_unlink_path(dest_path) != EOK) {
    250250                                                printf("Unable to remove %s\n", dest_path);
    251251                                                goto exit;
Note: See TracChangeset for help on using the changeset viewer.