Needed information regarding solving File Renaming Bug
- From: Pranav Ganorkar <pranavg189 gmail com>
- To: easytag-list gnome org
- Subject: Needed information regarding solving File Renaming Bug
- Date: Tue, 1 Mar 2016 01:40:24 +0530
Hi,
I wanted to ask some info regarding this bug:
As David already mentioned about defining a function
ET_File_Name_Check_Length(ETFile,new_file_name)
I understood that we can use the stat() function defined in sys/stat.h to get the info about the file name length and then check for ENAMETOOLONG errno returned by this function. But after we detect this error, I want to ask what could be an appropriate way of handling this error ? should we just return failure in the functions using the ET_File_Name_Check_Length() function.
Also, I am not understanding why we are passing ETFile struct to the ET_File_Name_Check_Length() function. we are just supposed to check the length of filename right. so , we just need to pass the new file name that will be entered by the user.
Regards,
Pranav
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]