From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) by sourceware.org (Postfix) with ESMTPS id ED104385800F for ; Fri, 26 Mar 2021 21:28:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org ED104385800F Received: by mail-io1-xd29.google.com with SMTP id b10so6837952iot.4 for ; Fri, 26 Mar 2021 14:28:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=jSC69txNz7TGx47sfUxhfoChBtf+L6OuJFQ+Ad1zyDo=; b=fSC+Aw/tzs7/pgvksnc2/+b+pDgY6AYS+vuB6IdLETJl9aNUwEpSw84OeH2JUHTe5I fmYzU77GDxrPTouoyjhNcTfQjEuHFRCxoxTwp4TuwnzwhOfnEraow24in9Q1lfIiqzTg LnsQwKJgOkCWpmpxQT65+C4CoudvQHx+uZHmCfubDH4g4M/Ll8N0B1HeuozAM4NTtk7l fvvVXw2Df4n3+yfQFH/7n7unYLqxU5jxEWdbs8tUI1y5bcWyCSKihPaahcRfD6Cmgwgg ghXpwp5k/1t+EGgMzlR2PFxMAulNQOHlXce7I6fdwW9k3QPPreQ5VQ0zl0/r5RZMQ144 VaUQ== X-Gm-Message-State: AOAM533IuR6g2PkGY1wUF5+VW9+6MAVt/EpTm7ISRE3E0bDsTXYVIimv SD8p+dwnIKO+FV72XVeHvZ84Jru7WntAF3tVaRhilyDR X-Google-Smtp-Source: ABdhPJxBzl4t90SwM3+thLrAujnL6zmbTHBYMUyNQkAlXDmyC6/Sad5gRjm9eYpgnpuDspfJITWu1UWgBL+J71tlwBA= X-Received: by 2002:a5e:c102:: with SMTP id v2mr11818969iol.137.1616794084294; Fri, 26 Mar 2021 14:28:04 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6602:349:0:0:0:0 with HTTP; Fri, 26 Mar 2021 14:28:03 -0700 (PDT) From: Peng Yu Date: Fri, 26 Mar 2021 16:28:03 -0500 Message-ID: Subject: nonspecific error message To: libc-help@sourceware.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-help@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-help mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Mar 2021 21:28:06 -0000 Hi, For renameat2, if only one file is missing, it will perror will print "No such file or directory". But this error message is not sufficient to determine which file is missing. How to detail with this kind of case when the error message is nonspecific? Should the error be ignored altogether and use some customized error message? Or there is some better convention for this kind of case? -- Regards, Peng